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]

Re: preprocessor/10614: -Wtrigraphs does not catch // ??/


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


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