Solved

Delphi6 and compiler warnings

Posted on 2001-08-27
8
602 Views
Last Modified: 2012-05-04
Is it some way to get rid of all
copiler warnings due to the platform specific thing?

( I mean like:

[Warning] test.dpr(524): Symbol 'INDEX' is specific to a platform)

0
Comment
Question by:hulken
8 Comments
 
LVL 20

Expert Comment

by:Madshi
ID: 6428181
{$ifdef ver140}
  {$WARN SYMBOL_DEPRECATED OFF}
  {$WARN SYMBOL_PLATFORM OFF}
{$endif}

Regards, Madshi.
0
 

Author Comment

by:hulken
ID: 6428212
what does {$WARN SYMBOL_DEPRECATED OFF}  turn off?
 
0
 
LVL 20

Expert Comment

by:Madshi
ID: 6428634
Hmmm... There are 2 different kind of new warnings in D6. Those are the 2 kinds. Please look in the help file for documentation about the warnings. I'm not sure, what "deprecated" means...   :-)

Regards, Madshi.
0
 
LVL 11

Expert Comment

by:robert_marquardt
ID: 6428657
Aha, a kind way of saying RTFM :-)
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 12

Expert Comment

by:rwilson032697
ID: 6430406
This is what we have in a WARNINGS.INC file we include at the top of units which display these sorts of warnings:

{$IFNDEF SUPPRESS_WARNINGS_INC}

{$WARN SYMBOL_PLATFORM OFF}
{$WARN SYMBOL_DEPRECATED OFF}
{$WARN SYMBOL_LIBRARY ON}
{$WARN UNIT_DEPRECATED ON}
{$WARN UNIT_LIBRARY ON}
{$WARN UNIT_PLATFORM OFF}

{$ENDIF}

BTW: Borland uses 'deprecated' to mean that the unit, library. or symbol is obsolete and may disappear in a future version of delphi (ie: this is a warning, use the 'new' ways of doing these things).

Cheers,

Raymond.
0
 
LVL 20

Accepted Solution

by:
Madshi earned 50 total points
ID: 6430911
Hi Robert  :-)  what does RTFM mean?
0
 

Author Comment

by:hulken
ID: 6431075
Madshi. it means Read the fuckin manual . (or if you like to be nice, read the fine manual) :-))
0
 
LVL 20

Expert Comment

by:Madshi
ID: 6431144
(-:
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now