Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在为我的 C 项目使用 PC lint。我想排除所有与包含文件相关的消息。我已尝试添加+libh(*.h)或+libh(*core_cm4.h)但我仍然从包含文件中获取所有错误。唯一一次如果我添加,我什么也得不到,-w0但我只想要所有源文件的信息、警告和错误。
+libh(*.h)
+libh(*core_cm4.h)
-w0
+libh指定将被视为库头文件的头文件 - 但您仍然需要告诉 PC-Lint 忽略库中的所有错误。
+libh
这可以用-wlib=4 -wlib=0.
-wlib=4 -wlib=0