Why disable specific warning not working in Visual Studio
来源:互联网 发布:三岛由纪夫 禁色 知乎 编辑:程序博客网 时间:2024/06/04 18:56
With Visual Studio C++ 2013, I have a lot of warning C4100: unreferenced formal parameter, and I want to disable that. I added 4100 to the "Disable Specific Warnings" in the project for both Debug|Release configurations but unfortunately VS still output the warnings.
I was using VS2008, and the Disable Specific Warning was working but now with VS2013, it doesn't. What I'm doing wrong?
EDIT:
Compiler command line :
/GS /analyze- /W3 /wd"4100" /Zc:wchar_t /I [...] /Zi /Gm- /Od /Fd".\" /fp:precise /D "_WIN32_WINNT=0x0601" /D "_CRT_SECURE_NO_WARNINGS" /D [...] /errorReport:prompt /WX- /Zc:forScope /GR /Gd /Oy- /MDd /Fa"debug\" /EHsc /nologo /Fo"debug\" /Fp"debug\project1.pch"
Additionnal options:
-Zm200-w34100-w34189/MP
down vote
This was driving me nuts for a while now. My problem was that Qt's default qmake.conf for win32-msvc2013 (look under qtdir\mkspecs) contains the following line: QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -w34100 -w34189
You didn't say you were using Qt, but the -w34100 parameter sets warning 4100 to be seen at the W3 level instead of the W4 level. This will have precedence over the -wd4100, hence you'll still see the warnings. For those of us using qt you can either add QMAKE_CXXFLAGS_WARN_ON -= -w34100 to your .pro file or remove the argument in the mkspecs folder.
- Why disable specific warning not working in Visual Studio
- Why is .innerText not working in Firefox?
- Why RequestContext is not working?
- How to disable Intellisense in Visual Studio 2008?
- Visual Studio, warning C4996
- Visual Studio Warning C4996
- Visual Studio Warning C4996
- svn: warning: '.' is not a working copy
- Why is the window.close() works in IE browser but not FireFox? "Warning: Scripts may not close windo
- Visual Studio 2010 warning C4996
- Visual Studio Linker Warning LNK4099
- visual studio 2015 warning MSB3246
- Why VHD not working on my Kingston UFD
- .trim() in JavaScript not working in IE
- Could not evaluate Expression' Debugger Abnormality in Visual Studio 2013 '
- Visual Studio 2010 Macros Stop Working
- Working with Variants in Visual Basic
- Working with Visual Aids in Public Speeches
- 如何通过maven库查找pom中dependency
- OJ------超长整数相加
- POJ 2481Cows 树状数组
- GDB下查看内存命令(x命令)
- 在java中运行Bat批处理
- Why disable specific warning not working in Visual Studio
- 安卓控件 listView 的学习及优化 (ConvetView、viewHolder)
- 关于信念
- Android事件分发机制完全解析,带你从源码的角度彻底理解(下)
- 蓝牙之十三-HFPclient JNI层
- IBM 混合数据仓库架构介绍
- MySQL提示:The server quit without updating PID file
- 训练第四周之矩阵快速幂
- socket通信