在Qt Creator中禁用项目范围的编译器警告(使用MSVC时) [英] Disable a compiler-warning project-wide in Qt Creator (when using MSVC)

查看:893
本文介绍了在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

这篇关于在Qt Creator中禁用项目范围的编译器警告(使用MSVC时)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆