How to enable .NET Compiler Warnings when using dcc32 compiler

By: Angel Martinez

Abstract: Explains how to enable additional compiler warnings for dcc32


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


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

Server Response from: ETNASC04