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)
copiler warnings due to the platform specific thing?
( I mean like:
[Warning] test.dpr(524): Symbol 'INDEX' is specific to a platform)
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.
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.
{$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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Madshi. it means Read the fuckin manual . (or if you like to be nice, read the fine manual) :-))
(-:
{$WARN SYMBOL_DEPRECATED OFF}
{$WARN SYMBOL_PLATFORM OFF}
{$endif}
Regards, Madshi.