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++ warning C4018: '<' : signed/unsigned mismatch,但在项目范围内。我需要在我的 .pro 文件中添加什么才能达到这种效果?
C++ warning C4018: '<' : signed/unsigned mismatch
将以下行添加到您的 PRO 文件中:
QMAKE_CXXFLAGS += /wd4996