This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/12258] -Wold-style-cast triggers on casts in macros from system headers
- From: "stl at caltech dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Mar 2004 02:11:34 -0000
- Subject: [Bug preprocessor/12258] -Wold-style-cast triggers on casts in macros from system headers
- References: <20030912015846.12258.stl@caltech.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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