Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7908619
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T12:01:50+00:00 2026-06-03T12:01:50+00:00

I am compiling with cl.exe version _MSC_FULL_VER == 160030319 with warning level at 4.

  • 0

I am compiling with cl.exe version _MSC_FULL_VER == 160030319 with warning level at 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

Which is this bit of source code:

__thiscall _Mutex(_Uninitialized)
{   // do nothing
}

yvals.h is included in stdint.h which I am including like so:

#pragma warning(disable:4514)

#include <stdint.h>

#pragma warning(default:4514)

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T12:01:52+00:00Added an answer on June 3, 2026 at 12:01 pm

    I found the answer here. Someone reported it as a bug, but it was closed as by design. The answer is that the warning doesn’t kick in until the end of the translation unit. Quote:

    Thanks for reporting this issue. I’ve resolved it as By Design because
    the 4514 and 4710 warnings are emitted at the end of the translation
    unit (a translation unit is a source file and all of its included
    headers). That’s why disabling them for part of the translation unit
    has no effect. Although the line numbers might make it appear as if
    the compiler is emitting these warnings in the middle of the
    translation unit as it’s compiling the code, that’s not the case.

    Warning 4514 “unreferenced inline function has been removed” is
    emitted at the end of the translation unit by the compiler front-end
    (responsible for parsing C++) because only then can it determine that
    nothing in the translation unit references that inline function. It
    looks up the function’s line number, but whether the warning is
    emitted or not depends on whether it is enabled at the end of the
    translation unit, not whether it was enabled while compiling that
    function.

    So you either need to keep it always disabled or not worry about it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Microsoft Visual Studio Unable to start program 'theprogram.exe'. This application has failed to start
Is there dcc32.exe in RAD Studio XE2? When run get error: This version of
While compiling a C program in LINUX, I get the foll. error: stream.h:1123: error:
I have tried compiling the service EXE file as AnyCPU, x86, and x64. It
I have a VB.Net 1.1 application works just fine after compiling in Visual Studio.
I am using Visual Studio 2010 Premium version When I run the profiler, it
While compiling a project i get the following error as c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../../mingw32/bin/ld.exe: cannot find lwxmsw28
root@everton-laptop:/opt/tinyos-1.x/apps/Blink# make pc compiling Blink to a pc binary ncc -o build/pc/main.exe -g -O0
Compiling the following coe always get the same frustrating mistake. I'm trying to compare
Compiling this code with g++ 4.7.0 ( -Wall -Wextra -Werror -Wconversion -std=c++11 ): #include

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.