bdn.borland.com

Article #29239: How to enable .NET Compiler Warnings when using dcc32 compiler

Question:


How can I enable .NET Compiler Warnings when using the dcc32 compiler?


Answer:


The Delphi 7 dcc32 compiler now supports three additional compiler warnings: Unsafe_Type, Unsafe_Code, and Unsafe_Cast. These warnings are disabled by default, but can be enabled with source code compiler directives {$WARN UNSAFE_CODE ON}, compiler command line switches (dcc32 -W+UNSAFE_CODE), and in Project|Options (Select Compiler Messages and select Unsafe Type, Unsafe Code and Unsafe TypeCast).

NOTE: There is no space before or after the "+" in the command line switch

Last Modified: 05-DEC-02