-Wold-style-cast and standard library macros

Yang Zhang yanghatespam@gmail.com
Sun Feb 22 04:22:00 GMT 2009


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/



More information about the Gcc-help mailing list