"specific to a platform" warning in Delphi 6 on Windows 7

Vaccano picture Vaccano · Oct 6, 2010 · Viewed 7.5k times · Source

We have some legacy code that compiles in Delphi 6. There are plans to rewrite it in a more current IDE, but they are a ways out.

When we compile it we get several warnings like this:

FPrecision is specific to a platform.

This is in VCL\DB.pas. (Not our file.) FPrecision is defined like this:

FPrecision Integer Platform

I can see why it is platform specific, but I don't really see what to do about it.

This only started happening when we moved to Windows 7 to develop on.

I saw this question, but the solution does not work for me. I cannot add the pre-compiler tags to DB.pas and the project file does not have any options (that I can see) to suppress just this warning.

Is my only option to turn off all warnings or live with it?

Answer

luchaninov picture luchaninov · Jan 11, 2011

If you develop only for specific platform open project source (Project > View source) and add

{$WARN SYMBOL_PLATFORM OFF}