[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: |
Joel Cunningham |
Subject: |
[lwip-devel] [bug #49827] wrong cast to size_t on 16-bit x86 architecture |
Date: |
Tue, 13 Dec 2016 19:40:26 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0 |
Follow-up Comment #17, bug #49827 (project lwip):
Simon/Dirk,
We are on the same page in regards to when to cast away const and ideally it
would never be done. The conditions where LWIP_CONST_CAST() are applied are
the same conditions where I'd explicitly cast away the const.
I guess I haven't worked with a toolchain configuration where explicitly
casting away const caused a warning, but clearly it is a feature of some
compilers, possibly because most of the time const is casted away, it's not
done carefully as we discussed, but by a sloppy developer.
If I'm understanding correctly, the purpose of LWIP_CONST_CAST is to document
that the cast is well thought out and to also avoid the compiling issuing a
warning because we might have done something dangerous
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?49827>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #49827] wrong cast to size_t on 16-bit x86 architecture, (continued)
- [lwip-devel] [bug #49827] wrong cast to size_t on 16-bit x86 architecture, Alexander, 2016/12/12
- [lwip-devel] [bug #49827] wrong cast to size_t on 16-bit x86 architecture, Simon Goldschmidt, 2016/12/12
- [lwip-devel] [bug #49827] wrong cast to size_t on 16-bit x86 architecture, Ambroz Bizjak, 2016/12/12
- [lwip-devel] [bug #49827] wrong cast to size_t on 16-bit x86 architecture, Simon Goldschmidt, 2016/12/12
- [lwip-devel] [bug #49827] wrong cast to size_t on 16-bit x86 architecture, Ambroz Bizjak, 2016/12/12
- [lwip-devel] [bug #49827] wrong cast to size_t on 16-bit x86 architecture, Joel Cunningham, 2016/12/12
- [lwip-devel] [bug #49827] wrong cast to size_t on 16-bit x86 architecture, Dirk Ziegelmeier, 2016/12/13
- [lwip-devel] [bug #49827] wrong cast to size_t on 16-bit x86 architecture, Simon Goldschmidt, 2016/12/13
- [lwip-devel] [bug #49827] wrong cast to size_t on 16-bit x86 architecture, Alexander, 2016/12/13
- [lwip-devel] [bug #49827] wrong cast to size_t on 16-bit x86 architecture, Simon Goldschmidt, 2016/12/13
- [lwip-devel] [bug #49827] wrong cast to size_t on 16-bit x86 architecture,
Joel Cunningham <=
- [lwip-devel] [bug #49827] wrong cast to size_t on 16-bit x86 architecture, Ambroz Bizjak, 2016/12/13