Code Generation Preferences
This tab of the Preferences dialog box is used to customise the source code emitted by the code generator for test compilations and generated units.
The tab is accessed by selecting the Tools | Preferences menu item then clicking the Code Generation tab. Note: This tab is not used to modify the style of the source code: use the Code Formatting tab to change the style.
The Code Generator can be configured to generate compiler directives to inhibit specified warning messages for Delphi 6 and later.
To enable this facility you must first check the Emit $WARN directives to switch off listed warnings check box.
The warnings to be silenced are those listed in the list view control below the check box. Warnings are identified by the text in the Symbol column. These symbols must be valid parameters for Delphi's $WARN directive. Since new symbols can be (and are) introduced in different versions of Delphi, the minimum version of the compiler that supports the warning must also be specified. This is shown in the Min. Compiler column of the list view. The version is that specified by the Delphi's CompilerVersion constant.
New symbols can be added and existing symbols updated or deleted by using the controls below the list view as follows:
The Pre-defined button next to the Min. Compiler edit control is provided to make it easier to choose the required compiler version. Clicking the button drops down a menu which displays the names of some Delphi compilers. Choosing a compiler will enter the correct version number in the edit control. Note: The earliest supported compiler version is 14.0.
The Preview button at the top right of the tab displays the source code that will be emitted by the code generator.