Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to handle compiler warning "IncludeTrailingBackslash is specific to a platform"?

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?

like image 571
Jerry Dodge Avatar asked Dec 31 '12 05:12

Jerry Dodge


2 Answers

Delphi XE2 has another function IncludeTrailingPathDelimiter which can be used in place of IncludeTrailingBackslash. This function is supported on any platform that Delphi supports.

like image 172
Jerry Dodge Avatar answered Oct 07 '22 01:10

Jerry Dodge


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.

like image 3
alzaimar Avatar answered Oct 07 '22 03:10

alzaimar