1. Home
  2. Computing & Technology
  3. Delphi Programming

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

By Zarko Gajic, About.com

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 elect Unsafe Type, Unsafe Code and Unsafe TypeCast).

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

Delphi tips navigator:
» How do I (using Delphi) talk to Microsoft Word?
« How to play sounds on the PC Speaker

Zarko Gajic
Guide since 1998

Zarko Gajic
Delphi Programming Guide

Explore Delphi Programming
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Delphi Programming
  4. Coding Delphi Applications
  5. Delphi Tips and Tricks
  6. 2003 Delphi Tips
  7. How to enable .NET Compiler Warnings when using the dcc32 compiler?

©2009 About.com, a part of The New York Times Company.

All rights reserved.