This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/16358] -Wno-system-headers hides warning caused by user header vs system header conflict
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Jul 2004 16:15:32 -0000
- Subject: [Bug preprocessor/16358] -Wno-system-headers hides warning caused by user header vs system header conflict
- References: <20040704080514.16358.avi@exanet.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From giovannibajo at libero dot it 2004-07-05 16:15 -------
I agree with Avi. The system header doesn't do a #undef + #define, but just a
#define and it silently overwrites the previous macro. Even if this is
undefined behaviour, we can do better than we do now and emit at least a
warning.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16358