This is the mail archive of the gcc-bugs@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]

[Bug preprocessor/12258] -Wold-style-cast triggers on casts in macros from system headers


------- Additional Comments From stl at caltech dot edu  2004-03-13 02:11 -------
My current workaround is similar to what Kai Henningsen proposed: I have my 
own const constants for #define'd constants, as well as my own functions for 
#define'd macros (e.g. FD_SET), in a separate header which I then mark as a 
GCC system header. This produces warning-free code. It's a dirty hack, though.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12258


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