Use this panel to specify the warnings settings for S12Z compiler.
The following table lists and describes the Warnings options for S12Z compiler.
| Option | Description |
|---|---|
| Treat All Warnings as Errors | Check to treat all warnings as errors. The compiler will stop if it generates a warning message. |
| Enable Warnings | Select the level of warnings you want reported from the compiler. Custom lets you to select individual warnings. Other settings select a pre-defined set of warnings. |
| Illegal #pragmas (most) | Check to notify the presence of illegal pragmas. |
| Possible Unwanted Effects (most) | Check to notify the presence of illegal pragmas. |
| Extended Error Checks (most) | Check if you want to do an extended error checking. |
| Hidden Virtual Functions (most) | Check to generate a warning message if you declare a non-virtual member function that prevents a virtual function, that was defined in a superclass, from being called and is equivalent to pragma warn_hidevirtual and the command-line option -warnings hidevirtual. |
| Implicit Arithmetic Conversions (all) | Check to warn of implict arithmetic conversions. |
| Implicit Signed/Unsigned Conversions (all) | Check to enable warning of implict conversions between signed and unsigned variables. |
| Implicit Float to Integer Conversions (all) | Check to warn of implict conversions of a floating-point variable to integer type. |
| Implicit Integer to Float Conversions (all) | Check to warn of implict conversion of an integer variable to floating-point type. |
| Pointer/Integer Conversions (most) | Check to enable warnings of conversions between pointer and integers. |
| Unused Arguments (most) | Check to warn of unused arguments in a function. |
| Unused Variables (most) | Check to warn of unused variables in the code. |
| Unused Result from Non-Void-Returning Function (full) | Check to warn of unused result from nonvoid-returning functions. |
| Missing 'return' Value in Non-Void-Returning Function (most) | Check to warn of when a function lacks a return statement. |
| Expression Has No Side Effect (most) | Check to issue a warning message if a source statement does not change the program's state. This is equivalent to the pragma warn_no_side_effect, and the command-line option -warnings unusedexpr. |
| Extra Commas (most) | Check to issue a warning message if a list in an enumeration terminates with a comma. The compiler ignores terminating commas in enumerations when compiling source code that conforms to the ISO/IEC 9899-1999 ("C99") standard and is equivalent to pragma warn_extracomma and the command-line option -warnings extracomma. |
| Empty Declarations (most) | Check to warn of empty declarations. |
| Inconsistent 'class'/'struct' Usage (most) | Check to warn of inconsistent usage of class or struct. |
| Incorrect Capitalization in #include "..." (most) | Check to issue a warning message if the name of the file specified in a #include "file" directive uses different letter case from a file on disk and is equivalent to pragma warn_filenamecaps and the commandline option -warnings filecaps. |
| Incorrect Capitalization in System #include <...> (most) | Check to issue a warning message if the name of the file specified in a #include <file> directive uses different letter case from a file on disk and is equivalent to pragma warn_filenamecaps_system and the command-line option - warnings sysfilecaps. |
| Pad Bytes Added (full) | Check to issue a warning message when the compiler adjusts the alignment of components in a data structure and is equivalent to pragma warn_padding and the command-line option -warnings padding. |
| Undefined Macro in #if/#elif (full) | Check to issues a warning message if an undefined macro appears in #if and #elif directives and is equivalent to pragma warn_undefmacro and the command-line option -warnings undefmacro. |
| Non-Inlined Functions (full) | Check to issue a warning message if a call to a function defined with the inline, __inline__, or __inline keywords could not be replaced with the function body and is equivalent to pragma warn_notinlined and the command-line option -warnings notinlined. |
| Token Not Formed by ## Operator (most) | Check to enable warnings for the illegal uses of the preprocessor's token concatenation operator (##). It is equivalent to the pragma warn_illtokenpasting on. |