lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [lwip-devel] Re: [patch #6414] Avoid compiler errors/warnings with m


From: Bill Auerbach
Subject: RE: [lwip-devel] Re: [patch #6414] Avoid compiler errors/warnings with mem_size_t if MEM_LIBC_MALLOC
Date: Wed, 20 Feb 2008 08:38:43 -0500

> Hello
> The patch solves the problem :)
> but rises other 3 warnings that are trivial, and IMHO can be fixed right
> now without discussion.
> 
> There are 3 lines where the return value of mem_malloc() (which is
> void*) is not casted
> to the target types. Someone just forgot this. There is the list:

ANSI C rules for void pointers is that they can be assigned to and from
other pointers without warnings or casting.  Are you compiling lwIP with a
setting to force C++ compilation?  C++ would require the cast.

Bill






reply via email to

[Prev in Thread] Current Thread [Next in Thread]