Reputation: 27276
When compiling my application, there is a compiler warning:
[DCC Warning] ... W1002 Symbol 'IncludeTrailingBackslash' is specific to a platform
How do I avoid this warning?
Upvotes: 6
Views: 4667
Reputation: 4622
To avoid the warning, turn it off in the config dialog. This turns off all other plattform specific warnings as well, which might be helpfull, as you are not going to develop Linux-Apps anyway, I assume.
To get around the warning, use another function (IncludeTrailingPathDelimiter
) as you suggested.
Upvotes: 3
Reputation: 27276
Delphi XE2 has another function IncludeTrailingPathDelimiter
which can be used in place of IncludeTrailingBackslash
. This function is supported on any platform that Delphi supports.
Upvotes: 15