A bug in os/hal/ports/simulator/console.c? Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
User avatar
sabdulqadir
Posts: 49
Joined: Fri Mar 23, 2018 7:29 pm
Has thanked: 13 times
Been thanked: 4 times

A bug in os/hal/ports/simulator/console.c?  Topic is solved

Postby sabdulqadir » Tue May 22, 2018 8:38 pm

Hi,
While trying to remove compiler warnings, we came across this warning:

 ! Message from: sabdulqadir
../../../../ChibiOS_18.2.0/os/hal/ports/simulator/console.c:127:3: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
_write, _read, _put, _get,


Must be caused by the placed '(size_t)0' in following code:
static const struct BaseChannelVMT vmt = {
(size_t)0,
_write, _read, _put, _get,
_putt, _gett, _writet, _readt,
_ctl
};

Can you guys have a look?
Thanks,
AQ

- ChibiOS version: 18.2
- Compiler: gcc 5.4
- Platform and board: simulator
- Nature of the problem: Not tested
- Failure mode: Not tested

User avatar
Giovanni
Site Admin
Posts: 14457
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: A bug in os/hal/ports/simulator/console.c?

Postby Giovanni » Fri Jun 01, 2018 9:01 am

hi,

This has been fixed in 18.2.1.

Giovanni

User avatar
sabdulqadir
Posts: 49
Joined: Fri Mar 23, 2018 7:29 pm
Has thanked: 13 times
Been thanked: 4 times

Re: A bug in os/hal/ports/simulator/console.c?

Postby sabdulqadir » Fri Jun 01, 2018 5:25 pm

Thanks,
Appreciated.
AQ


Return to “Bug Reports”

Who is online

Users browsing this forum: Bing [Bot] and 58 guests