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 don’t match):

#pragma warning(warning_type : warning_num_list)

Parameters

num

The number of the warning message to show or suppress.

warning_type

Specifies the warning type. Included for Microsoft compatability but ignored.

warning_num_list

The warning_num_list is a list of warning numbers separated by spaces. Included for Microsoft compatability but ignored.

Targets
All targets.
Remarks

Use the pragma showmessagenumber to display warning messages with their warning numbers on a Windows-based system.
The alternative syntax applies to x86 programming only. Included for compatibility with Microsoft code but not implemented.

This pragma does not correspond to any panel setting. To check this setting, use __option (warning), described in Checking Settings. The default setting is on.