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

Re: backslash-newline, trigraphs, and the C standard


>>>>> "Zack" == Zack Weinberg <zack@wolery.cumb.org> writes:

    Zack> The current default situation depends which preprocessor
    Zack> you're using.  cccp doesn't warn about trigraphs anywhere
    Zack> even with -Wall, and -Wtrigraphs just gets you "warning: 5
    Zack> trigraphs somewhere in this file".  cpplib, on the other
    Zack> hand, issues one warning per trigraph with -Wall.

I guess I don't see that warning as very valuable, especially since
trigraphs are off by default in GCC.  The warning is only helpful if
you're going to compile the code somewhere where trigraphs are *on* by
default.  So, the Linux kernel doesn't benefit from this warning: it's
only ever compiled with GCC, as I understand it.

My suggestion, then, would be to remove this warning from -Wall.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

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