lwip-devel
[Top][All Lists]
Advanced

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

RE: [lwip-devel] [patch #6414] Avoid compiler errors/warnings withmem_si


From: Bill Auerbach
Subject: RE: [lwip-devel] [patch #6414] Avoid compiler errors/warnings withmem_size_t if MEM_LIBC_MALLOC
Date: Tue, 4 Mar 2008 08:51:55 -0500

> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden On Behalf
> Of Kieran Mansley
> Sent: Tuesday, March 04, 2008 8:32 AM
> To: Jonathan Larmour; Kieran Mansley; address@hidden; lwip-
> address@hidden
> Subject: [lwip-devel] [patch #6414] Avoid compiler errors/warnings
> withmem_size_t if MEM_LIBC_MALLOC
> 
> 
> Follow-up Comment #1, patch #6414 (project lwip):
> 
> Yes please Jifl, can you check this in prior to the final 1.3.0 release?
> 
> There was some concern on the lwip-devel mailing list that the value of
> mem_malloc wasn't being cast, but as I understand it (void *) shouldn't
need a
> cast, and so I'm not worried about that.  Of course, it's harmless to do
the
> cast, so if others need this for their compiler I've no objection to it
going in.

My 2 cents on this is I don't think changes should be made for compilations
with turned up warnings above what standard C requires.

In section 6.3 Conversions, with specific mention to automatic conversions,
we find: "A pointer to void may be converted to or from a pointer to any
incomplete or object type. A pointer to any incomplete or object type may be
converted to a pointer to void and back again; the result shall compare
equal to the original pointer."

Bill






reply via email to

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