warn_illpragma. NXP CodeWarrior Development Studio
Reklam
Reklam
Chapter 31 Pragmas for Diagnostic Messages
When on
, the compiler issues a warning message when it encounters a local variable that
hides another local variable. An example appears in Listing 31-11 on page 477 .
Listing 31-11. Example of hidden local variables warning
#pragma warn_hiddenlocals on void func(int a)
{
{
int a; /* WARNING: this 'a' obscures argument 'a'.
}
}
This pragma does not correspond to any CodeWarrior IDE panel setting. By default, this setting is off
.
31.17 warn_illpragma
Controls the recognition of invalid pragma directives.
Syntax
#pragma warn_illpragma on | off | reset
Remarks
If you enable this pragma, the compiler displays a warning message when it encounters a pragma it does not recognize.
By default, this setting is off
.
31.18 warn_illtokenpasting
Controls whether or not to issue a warning message for improper preprocessor token pasting.
Syntax
#pragma warn_illtokenpasting on | off | reset
Remarks
An example of this is shown below:
CodeWarrior Development Studio for Power Architecture Processors Build Tools Reference Manual, Rev.
10.6, 02/2014
Freescale Semiconductor, Inc.
477
İndir
Reklam