Use this panel to specify the settings for ColdFire compiler to format the listing file, as well as error and warning messages.
The following figure shows the Warnings panel.
The following table lists and describes the warnings options for the ColdFire 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. |
| Illegal Pragmas | Check to notify the presence of illegal pragmas. |
| Possible Errors | Check to suggest possible errors. |
| Extended Error Checking | Check if you want to do an extended error checking. |
| Hidden virtual functions | 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 Arithmentic Conversions | Check to warn of implict arithmetic conversions. |
| Im plicit Integer to Float Conversions | Check to warn of implict conversion of an integer variable to floating-point type. |
| Implicit Float to Integer conversions | Check to warn of implict conversions of a floating-point varaible to integer type. |
| Implict Signed/Unsigned Conversions | Check to enable warning of implict conversions between signed and unsigned variables. |
| Pointer/Integral Conversions | Check to enable warnings of conversions between pointer and integers. |
| Unused Arguments | Check to warn of unused arguments in a function. |
| Unused Variables | Check to warn of unused variables in the code. |
| Unused Result From Non-Void-Returning Function | Check to warn of unused result from nonvoid-returning functions. |
| Missing `return' Statement | Check to warn of when a function lacks a return statement. |
| Expression Has No Side Effect | 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 | 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 | Check to warn of empty declarations. |
| Inconsistent ` class' / ` struct' Usage | Check to warn of inconsistent usage of class or struct. |
| Include File Capitalization | 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 command-line option -warnings filecaps. |
| Check System Includes | 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 | 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 | 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 | 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 | Check to enable warnings for the illegal uses of the preprocessor's token concatenation operator (##). It is equivalent to the pragma warn_illtokenpasting on. |