Delphi编译器警告指向Delphi自己的单元

标签 delphi ide compiler-construction custom-component

在 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

我通常会尽可能地消除编译器警告,但这些是“库存”Delphi 单元。这些警告是我的代码中某些内容的间接结果吗?如果是这样,我如何找出什么/在哪里?如果没有,我该怎么办?

最佳答案

我相信这是因为你的构建路径中有库存的 Delphi 源代码。如果删除 Delphi 源目录,那么构建时应该不会出现这些警告。

关于Delphi编译器警告指向Delphi自己的单元,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/870862/

相关文章:

delphi - 如何处理浮点溢出?

delphi - 使用通用接口(interface)的错误重载调用

delphi - 无法查看和使用自定义 VCL 样式

compiler-construction - 我可以将 AST 转换为 SSA,还是需要先转换为 CFG,然后再转换为 SSA?

c# - 如何检查是否从服务器访问了exe

intellij-idea - Intellij IDEA : Reopen files (Tabs) on start

用于快速编辑命令行参数的 Eclipse 插件/ View

linux - 我在哪里可以找到 i486-linux-gnu 指令集的中断列表?

java - 在 ANT 中编译失败的类列表

c++ - 有没有编译前不提示保存的C/C++ IDE?