I have a XE2 test project (DUnit). All works and compiles fine. However we have one warning that I have not been able to eliminate:
[DCC Warning] GUITestRunner.pas(1237): W1000 Symbol 'TimeSeparator' is deprecated: 'Use FormatSettings.TimeSeparator'
The problem however is that this code comes from GUITestRunner which is bundled with XE2: **
\Embarcadero\RAD Studio\9.0\source\DUnit\src**GUITestRunner**
**.
I did try using {$WARN SYMBOL_DEPRECATED OFF}
in our .dpr file. However this only works with the current assembly.
Do you know of any way of getting rid of that warning besides tampering with the code which comes bundled with XE2?
Thanks a lot!
You should be able to eliminate the warning by simply linking a pre-compiled DCU instead of recompiling the PAS file.
But...
There's nothing wrong with modifying third-party code to fix the warning. I've encountered a number of small deficiencies in DUnit that I chose to fix in the original units.
Advice for making changes to DUnit:
EDIT
With regard your concern about other developers and the build machines: All the more reason to get the change under you shared source-control.