在Qt Creator中禁用项目范围的编译器警告(使用MSVC时)
问题描述:
我想停用特定的警告,例如 C ++警告C4018:'<':signed / unsigned mismatch
,但是项目范围。
I want to disable a particular warning, such as C++ warning C4018: '<' : signed/unsigned mismatch
, but project-wide. What do I need to put in my .pro file to achieve that effect?
答
将以下行添加到您的PRO文件中:
Add the following line to your PRO file:
QMAKE_CXXFLAGS += /wd4996