warning

Controls which warning numbers are displayed during compiling.

Syntax
#pragma warning on | off | reset (
  num  [, ...])
  

This alternate syntax is allowed but ignored (message numbers do not match):

#pragma warning
  ( 
  warning_type  : 
  warning_num_list  [, 
  warning_type : 
  warning_num_list , ...])
  
Parameters

num

The number of the warning message to show or suppress.

warning_type

Specifies one of the following settings:

warning_num_list

The warning_num_list is a list of warning numbers separated by spaces.

Remarks

Use the pragma showmessagenumber to display warning messages with their warning numbers.

This pragma only applies to CodeWarrior front-end warnings. Using the pragma for the Power Architecture back-end warnings returns invalid message number warning.

The CodeWarrior compiler allows, but ignores, the alternative syntax for compatibility with Microsoft® compilers.

This pragma does not correspond to any panel setting. By default, this pragma is on .