当我在Delphi 2006下编译我的应用程序时,我收到以下警告[Pascal警告] - W1002符号'FileSetDate'特定于一个平台
我该怎么做才能抑制这个警告?
代码
MyLastError:= FileSetDate( Files[ i ].Handle, DateTimeToFileDate( arcDate ) );
Run Code Online (Sandbox Code Playgroud) 在Delphi 2007中,处理一个包含自定义组件的项目,当我进行完整构建时,我将这组警告作为消息中的前四个警告(但不是在我进行直接编译时):
[DCC Warning] Dialogs.pas(1426): W1002 Symbol 'TFileOpenDialog' is specific to a platform
[DCC Warning] Dialogs.pas(1446): W1002 Symbol 'TFileSaveDialog' is specific to a platform
[DCC Warning] ComCtrls.pas(6757): W1036 Variable 'Section' might not have been initialized
[DCC Warning] ComCtrls.pas(19268): W1023 Comparing signed and unsigned types - widened both operands
Run Code Online (Sandbox Code Playgroud)
我通常会尽力消除编译器警告,但这些都是"库存"德尔福单位.这些警告是否是我代码中某些内容的间接结果?如果是这样,我该如何找出/在哪里?如果没有,我该怎么办呢?