C/C++ Programmer's Guide (G06.25+)
Compiler Pragmas
HP C/C++ Programmer’s Guide for NonStop Systems—429301-008
13-98
STRICT
STRICT
The STRICT pragma directs the TNS C compiler or Cfront to generate a warning if it 
encounters one of a number of valid, but questionable, syntactic or semantic 
constructs.
The pragma default settings are:
Usage Guidelines
•
The STRICT pragma can be entered on the compiler RUN command line or in the 
source text. 
•
The STRICT pragma causes these additional warning messages to be issued: 5, 
36, 84, 92, 93, 94, 96, 98, 105, 107, 108, 119, 148, 151, 179, 217, and 218. For the 
text of these messages, see Section 20, TNS C Compiler Messages.
•
The constructs that the STRICT pragma causes the compiler to diagnose include:
°
Function declarations and definitions that do not use function-prototype syntax
°
Calls to functions that do not have a function-prototype declaration or definition 
in scope
°
Calls to functions that have no nonprototype declaration or definition in scope
°
Calls to library routines that occur before inclusion of the library header that 
declares or defines the routine
°
Object declarations that do not include a type specifier
°
Nonprototype function definitions that do not specify the types of all parameters
°
A type conversion that might cause loss of data or precision without an explicit 
cast expression
°
Access of the value of a local variable before it appears to have been initialized
°
A constant used as the controlling condition of a do, for, if, switch, or 
while statement or of a conditional expression (using the ?: operator)
STRICT
SYSTYPE GUARDIAN SYSTYPE OSS
TNS C compiler Not set Not set
G-series TNS c89 utility Not set Not set
TNS/R native C and C++ compilers  N.A. N.A.
Native c89 utility N.A. N.A.
TNS/E native C and C++ compilers  N.A. N.A.










