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

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

By , About.com Guide

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

Explore Delphi Programming
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. 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.