1
VS 2015でデフォルトの空のプロジェクトを作成し、警告を/Wall
に設定しました。私は、次を持つ単一のソースファイルを持っている:空のメイン()の警告が発生しました
#pragma warning(push, 3)
#include <functional>
#pragma warning(pop)
//#pragma warning(disable : 4710)
int main()
{
}
私は次のエラーを取得:
1>c:\users\flatmouse\documents\visual studio 2015\projects\project72\project72\source.cpp(10): warning C4710: 'std::exception_ptr std::exception_ptr::_Current_exception(void) throw()': function not inlined
1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\exception(299): note: see declaration of 'std::exception_ptr::_Current_exception'
1>c:\users\flatmouse\documents\visual studio 2015\projects\project72\project72\source.cpp(10): warning C4710: 'std::exception_ptr std::current_exception(void) noexcept': function not inlined
1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\exception(358): note: see declaration of 'std::current_exception'
次私はポップを移動することによって、すべてのソースコードのための3の警告レベルを維持しようとしました最後の行:
#pragma warning(push, 3)
#include <functional>
//#pragma warning(disable : 4710)
int main()
{
}
#pragma warning(pop)
しかし、私はまだ同じエラーが発生します。
なぜ警告が表示されるのですか?
/ウォールストライク(ここではhttp:// stackoverflow .com/questions/39603207/msvc-2015-wall-has-lots-of-not-useful-messages)を参照してください)。 –
[誰かがこの昨日ほぼ正確に走った](http://stackoverflow.com/questions/39603207/msvc-2015-wall-has-lots-of-not-useful-messages)上記のプラグマの警告レベルを下げてブロックしたにもかかわらず、ウォールはインクルードに些細な警告を表示しています。誰かが良い答えを持っているように見えません。 – user4581301
@RobertPrévostYep。キューブピンクフロイド。 – user4581301