This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: preprocessor/10614: -Wtrigraphs does not catch // ??/
- From: Hallvard B Furuseth <h dot b dot furuseth at usit dot uio dot no>
- To: neil at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
- Date: Sun, 4 May 2003 11:20:12 +0200
- Subject: Re: preprocessor/10614: -Wtrigraphs does not catch // ??/
- References: <20030504090555.1786.qmail@sources.redhat.com>
neil@gcc.gnu.org writes:
> Not a bug. -Wcomment(s) does what you want.
Sorry, no. What I want is for -Wtrigraphs to warn about code that will
compile differently with and without trigraph support. However,
- The warning from gcc -trigraphs -Wcomments gives no indication of
this; it could come from a `//..\' line.
- The warning is only given when -trigraphs or -std=c99 is given.
So if I just compile with 'gcc -Wcomments', I'll get no clue that the
program will silently compile differently on an ISO C compiler.
--
Hallvard