[En-Nut-Discussion] Re: [btnode-development] Warnings when compiling NutOS unix emulation with gcc 4.0.1
Matthias Ringwald
mringwal at inf.ethz.ch
Tue Jul 12 15:34:15 CEST 2005
hi ole.
thanks for taking a look at the signedness /gcc 4.0 issue.
actually, there has been another volunteer which did send a patch to
correct all those.
http://www.egnite.de/pipermail/en-nut-discussion/2005-March/004106.html
I did have a quick look but I'm not confident if the patch is good.
E.g. it changes the THREADINFO td_name from u_char to char.
I think its better the other way round, in functions calls that use
td_name
cast to (char).
matthias
On 12.07.2005, at 13:56, Ole Reinhardt wrote:
> Hi all,
>
> I get a lot of warnings when compiling the unix emulation with gcc
> version 4.0.1. Those would also appear when compiling with avr-gcc 4.x
>
> These warnings are like the following:
>
> bt_hci_transport_uart.c:161: warning: pointer targets in passing
> argument 1 of 'NUT_fopen' differ in signedness
>
> They always appear if we pass a u_char argument to a function
> expecting
> a char argument.
>
> I would likt to propose to change all variables that hold text
> characters to char.
>
> What's your opinion to solve this problem? (beside of using gcc 3.3.6)
>
> Regards,
>
> Ole Reinhardt
>
> --
> kernel concepts Tel: +49-271-771091-14
> Dreisbachstr. 24 Fax: +49-271-771091-19
> D-57250 Netphen E+ : +49-177-7420433
> --
>
>
> --
> Unsubscribe mailto:btnode-development-request at list.ee.ethz.ch?
> subject=unsubscribe
> Help mailto:btnode-development-request at list.ee.ethz.ch?
> subject=help
> Archive http://lists.ee.ethz.ch/btnode-development
> WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
>
>
More information about the En-Nut-Discussion
mailing list