Changes between Version 17 and Version 18 of Guidelines/WarningsGuidelines


Ignore:
Timestamp:
Jan 20, 2011, 4:03:02 AM (12 years ago)
Author:
phorgan1
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Guidelines/WarningsGuidelines

    v17 v18  
    294294
    295295=== Turning on Warnings ===
     296   
     297GCC uses command line warnings to turn on warnings.  If you want to turn on warnings about unused variables you would add -Wunused-variable to the command line.  Some of the command line options such as -Wall, -Wextra, and -pedantic turn on groups of warnings as detailed below.  Sometimes a group is almost right, but not quite.  If you want -pedantic, for example, but without warnings about the use of long long for use with C++98, you could say -pedantic -Wno-long-long.  In general, for any diagnostic option specified as -Woption-name, it can be turned off with -Wno-option-name.
    296298
    297299'''-Wall'''