Yvals.h Warning C4514 on the Windows SDK 7.1 Compiler

I am compiling with cl.exeversion _MSC_FULL_VER == 160030319with a warning level of 4. I get this warning:

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\yvals.h(773) : warning C4514: 'std::_Mutex::_Mutex' : unreferenced inline function has been removed

What is this bit of source code:

__thiscall _Mutex(_Uninitialized)
{   // do nothing
}

yvals.hincluded in stdint.hwhich I include like this:

#pragma warning(disable:4514)

#include <stdint.h>

#pragma warning(default:4514)

But he still does not get rid of the warning. Am I something wrong here?

+5
source share
1 answer

I found the answer here . Someone reported this as an error, but it was closed by design. The answer is that the warning does not fire until the end of the translation block. Quote:

. , 4514 4710 unit ( , ). . , , .

4514 " " front-end ( ++), , . , , , , , .

, , .

+4

All Articles