This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
-Wold-style-cast and standard library macros
- From: Yang Zhang <yanghatespam at gmail dot com>
- To: GCC-help <gcc-help at gcc dot gnu dot org>
- Date: Sat, 21 Feb 2009 23:22:16 -0500
- Subject: -Wold-style-cast and standard library macros
Hi, I'd like to use -Wold-style-cast for my own code, but when I use
such macros as <arpa/inet.h>'s INADDR_ANY (which is #defined as
`((in_addr_t) 0x00000000)`), I get warnings for that. Any way around
this? Thanks!
--
Yang Zhang
http://www.mit.edu/~y_z/