c++ - 如何禁用来自非项目文件的警告? --- Visual Studio 2010

标签 c++ visual-studio-2010 warnings ogre

我使用 Ogre 3d,它会产生大量警告。

我可以为不在我的项目中的文件禁用所有警告吗?

最佳答案

在包含 ogre3d header 之前使用“#pragma warning”(我猜你是在“stdafx.h”中这样做的)。 Here a link how that work .

关于c++ - 如何禁用来自非项目文件的警告? --- Visual Studio 2010,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18576425/

相关文章:

php - "Notice: Undefined variable"、 "Notice: Undefined index"、 "Warning: Undefined array key"和 "Notice: Undefined offset"使用 PHP

c++ 技巧与 *& 是什么意思?

c++ - VS2010 如何将 .h 连接到项目目录外的 .cpp

c++ - 使用 'using' 关键字获取指向类方法的指针

visual-studio-2010 - VS Designer问题。如何更改父控件

Delphi 警告 W1073 组合有符号类型和无符号 64 位类型 - 视为无符号类型

MySQL 关于 max_open_files 和 table_open_cache 的警告

c++ - 删除内存和对相关位置数据的影响

c++ - 如何通过引用或指针传递功能对象(仿函数)?

c++ - VBA 无法找到我的 DLL,尽管对位置进行了硬编码。