Changes between Version 13 and Version 14 of Guidelines/WarningsGuidelines


Ignore:
Timestamp:
Jan 14, 2011, 10:03:37 PM (12 years ago)
Author:
phorgan1
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Guidelines/WarningsGuidelines

    v13 v14  
    663663  In GCC, for versions 4.2 and higher, this option instructs the diagnostic machinery to add text to each diagnostic emitted, which indicates which command line option directly controls that diagnostic, when such an option is known to the diagnostic machinery.  The added text will look similar to [-Wsign-compare].  If you see this, that tells you that the -Wsign-compare command line option turns this warning on.
    664664===== Turning the warnings off and on
     665I want to particularly thank Jonathan Wakely for his willingness to help and for the great help he offered on the gcc-help mailing list.  It's people like him that make open source work.  Without his help it would have taken me much longer to write this section.  Any problems of course are my fault;)  In addition to picking Jonathan's brain, I read the appropriate source in diagnostics.c and perused many releases of GCC documentation to get this information.
     666
    665667GCC provides the following pragmas to control warnings.
    666668 #pragma GCC diagnostic push::