This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

-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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]