C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
warning
                                             Up Contents Index Back
─────C/C++ Language─────────────────────────────────────────────────────────
 
  Pragma:   warning
 
  Syntax:   #pragma warning( warning-specifier [; warning-specifier ])
 
  Summary:  Controls the warning level for compiler warnings.
 
  See also: /W
 
     The warning pragma controls how the compiler treats the specified
     warning messages. The <warning-specifier> has the syntax
     <warning-entry>[; <warning-specifier>]. A <warning-entry> has the
     syntax <warning-type>:<warning-number-list>. The possible
     values for <warning-type> are as follows:
 
     Option       Meaning
 
     once         Display the specified warning[s] only once.
 
     1, 2, 3, 4   Force the specified warning[s] to warning level 1-4.
 
     default      Use the standard warning level for the warning[s].
 
     disable      Disable the specified warning[s].
 
     error        Report the warning[s] as error[s].
 
     The <warning-number-list> can be any warning number between 1 and
     699 or between 4001 and 4699. Separate multiple warning numbers
     with a space.
                                    -♦-