Link to home
Start Free TrialLog in
Avatar of hulken
hulken

asked on

Delphi6 and compiler warnings

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)

Avatar of Madshi
Madshi

{$ifdef ver140}
  {$WARN SYMBOL_DEPRECATED OFF}
  {$WARN SYMBOL_PLATFORM OFF}
{$endif}

Regards, Madshi.
Avatar of hulken

ASKER

what does {$WARN SYMBOL_DEPRECATED OFF}  turn off?
 
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.
Aha, a kind way of saying RTFM :-)
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.
ASKER CERTIFIED SOLUTION
Avatar of Madshi
Madshi

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hulken

ASKER

Madshi. it means Read the fuckin manual . (or if you like to be nice, read the fine manual) :-))
(-: