什么是不压制这个警告? [英] What is un-suppressing this warning?

查看:112
本文介绍了什么是不压制这个警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的解决方案中的某个项目中禁止警告4101。我注意到,如果我将4101放入


"配置属性" - >"C / C ++" - >>"高级" - > "禁用特定警告",它仍显示在我的警告中。但是,如果我把/ wd" 4101"在"C / C ++" - >"所有选项" - >"附加
选项"中,它被正确删除。

I'm trying to suppress warning 4101 in one of the projects in my solution. I've noticed that if I put 4101 in the
"Configuration Properties"->"C/C++"->"Advanced"->"Disable Specific Warnings", it still shows up in my warnings. But, if I put /wd"4101" in the "C/C++"->"All Options"->"Additional Options", it is correctly removed.

所以,我假设中间必须有一些重新启用该警告的东西。我已经梳理了完整的命令行,但我无法弄清楚它必须是什么。有人可以帮忙吗?

So, I assume there must be something in the middle that is re-enabling that warning. I've combed through the full command line, but I can't work out what it must be. Can anyone help?

这是完整的命令行:

/ MP / GS / TP / W3 / wd" 4355" / WD" 4800" / WD" 4101" / Zc:wchar_t / I(* snip *)/ Zi / Gm- / Od / Ob0 /Fd"fgo.dir\Debug\fgo.pdb" / Zc:inline / fp:precise / U" NDEBUG" / D"WIN32" / D" _WINDOWS" / D"_DEBUG"
/ D" LHF_TEST" / D"_CRT_SECURE_NO_WARNINGS" / D"WINDOWS" / D"OS_WIN32" / D"_USE_MATH_DEFINES" / D"DOUBLE_PRECISION" / D" QT_NO_FILEDIALOG" / D" QT_NO_INPUTDIALOG" / D" QT_NO_MESSAGEBOX"
/ D" USE_KD_PRIORITY" / D"BIT64" / D"DEBUG" / D" CMAKE_INTDIR = \" Debug \"" / D"_MBCS" / errorReport:prompt / WX- / Zc:forScope / RTC1 / GR / Gd / MDd / Fa" Debug /" / EHsc / nologo /Fo"fgo.dir\Debug\"
/Fp"fgo.dir\Debug\fgo.pch"   / vmg / w14100 / w14101 / w14238 / w14389 / w14018 / w14062 / w14189

/MP /GS /TP /W3 /wd"4355" /wd"4800" /wd"4101" /Zc:wchar_t /I (*snip*) /Zi /Gm- /Od /Ob0 /Fd"fgo.dir\Debug\fgo.pdb" /Zc:inline /fp:precise /U"NDEBUG" /D "WIN32" /D "_WINDOWS" /D "_DEBUG" /D "LHF_TEST" /D "_CRT_SECURE_NO_WARNINGS" /D "WINDOWS" /D "OS_WIN32" /D "_USE_MATH_DEFINES" /D "DOUBLE_PRECISION" /D "QT_NO_FILEDIALOG" /D "QT_NO_INPUTDIALOG" /D "QT_NO_MESSAGEBOX" /D "USE_KD_PRIORITY" /D "BIT64" /D "DEBUG" /D "CMAKE_INTDIR=\"Debug\"" /D "_MBCS" /errorReport:prompt /WX- /Zc:forScope /RTC1 /GR /Gd /MDd /Fa"Debug/" /EHsc /nologo /Fo"fgo.dir\Debug\" /Fp"fgo.dir\Debug\fgo.pch"  /vmg /w14100 /w14101 /w14238 /w14389 /w14018 /w14062 /w14189

干杯

-LF

推荐答案

命令行包含"/ w14101",它会重新启用级别1及更高级别的警告。此选项是否也键入了当前配置的附加选项?

The command line contains "/w14101", which re-enables the warning for level 1 and higher. Is this option typed into Additional Options for current configuration too?


这篇关于什么是不压制这个警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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