lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #49827] wrong cast to size_t on 16-bit x86 architectur


From: Ambroz Bizjak
Subject: [lwip-devel] [bug #49827] wrong cast to size_t on 16-bit x86 architecture
Date: Tue, 13 Dec 2016 20:22:10 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.90 Safari/537.36

Follow-up Comment #18, bug #49827 (project lwip):

Simon,

I have nothing about making things compile with strange compilers or warnings
enabled. But I think it is far more appropriate to by default define
LWIP_CONST_CAST and friends using simple casts (a correct and safe default),
and leave it up to the user to override these macros if that results in
warnings.

Speaking of warnings, why would a hypothetical compiler on full warning levels
complain about casting away const but not about converting pointers to
integers?

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?49827>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

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