C/C++ Programmer's Guide (G06.27+, H06.08+, J06.03+)

WARN
The WARN pragma controls the generation of all or selected warning messages. The WARN pragma
enables the compiler to generate all or a selected set of warning messages, and NOWARN disables
the compiler from generating all or a selected set of warning messages.
[NO]WARN [ warning-list ]
warning-list:
( warning-number [, warning-number ]... )
warning-list
is a parenthesized, comma-separated list of warning-message numbers. This list represents the
warning messages whose generation the compiler is to enable or disable.
If you omit warning-list, the WARN or NOWARN pragma affects all warning messages.
The pragma default settings are:
SYSTYPE OSSSYSTYPE GUARDIAN
WARNWARNTNS C compiler
WARNWARNG-series TNS c89 utility
WARNWARNTNS/R native C and C++ compilers
WARNWARNNative c89 and c99 utilities
WARNWARNTNS/E native C and C++ compilers
Usage Guidelines
The WARN pragma can be entered on the compiler RUN command line or in the source text.
The pragma can also be specified with the -W[no]warn flag of the c89 or the c99 utility.
There is no correspondence between the warning-message text or numbers between the TNS
C compiler and the native C and C++ compilers.
Examples
1. In this example, the compiler generates only warning messages 153 and 157.
#pragma nowarn
#pragma warn (153,157)
2. In this example, the compiler generates all warning messages except warning 153.
#pragma nowarn (153)
WIDE
The WIDE pragma specifies the data model, which defines the size of the data type int. The WIDE
pragma specifies the 32-bit data model. NOWIDE specifies the 16-bit data model. (The 32-bit data
model is also referred to as the wide-data model.)
[NO]WIDE
The pragma default settings are:
SYSTYPE OSSSYSTYPE GUARDIAN
WIDENot setTNS C compiler
WIDEWIDEG-series TNS c89 utility
258 Compiler Pragmas