Solved

Delphi6 and compiler warnings

Posted on 2001-08-27
8
607 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
ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

 
LVL 11

Expert Comment

by:robert_marquardt
ID: 6428657
Aha, a kind way of saying RTFM :-)
0
 
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

832 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