warn_filenamecaps. NXP CodeWarrior Development Studio
Advertentie
Advertentie
Chapter 31 Pragmas for Diagnostic Messages
Syntax
#pragma warn_extracomma on | off | reset
Remarks
If you enable this pragma, the compiler issues a warning message when it encounters a
trailing comma in enumerations. For example, Listing 31-10 on page 475 is acceptable
source code but generates a warning message when you enable this setting.
Listing 31-10. Warning about extra commas
#pragma warn_extracomma on enum { mouse, cat, dog, };
/* WARNING: compiler expects an identifier after final comma. */
The compiler ignores terminating commas in enumerations when compiling source code that conforms to the ISO/IEC 9899-1999 ("C99") standard.
By default, this pragma is disabled.
31.14 warn_filenamecaps
Controls the recognition of conflicts involving case-sensitive filenames within user includes.
Syntax
#pragma warn_filenamecaps on | off | reset
Remarks
If you enable this pragma, the compiler issues a warning message when an
#include directive capitalizes a filename within a user include differently from the way the filename appears on a disk. It also detects use of "8.3" DOS filenames in Windows® operating systems when a long filename is available. Use this pragma to avoid porting problems to operating systems with case-sensitive file names.
By default, this pragma only checks the spelling of user includes such as the following:
#include " file
"
For more information on checking system includes, see
.
By default, this pragma is off
.
CodeWarrior Development Studio for Power Architecture Processors Build Tools Reference Manual, Rev.
10.6, 02/2014
Freescale Semiconductor, Inc.
475
Downloaden
Advertentie