How to disable specific warning inherited from parent in Visual Studio?
<p>Suppose I am working on a large code base that has warning <code>w44101</code> enabled by default. Meaning if I go into my project and right click properties -> C/C++ -> Command Line -> <code>/w44101</code> shows up in the additional options section.</p>

<p>I want to be able to disable this warning by altering the configuration instead of the source code. I tried going into properties -> C/C++ -> All Options -> Disable Specific Warnings and put in <code>4101</code>, and this actually produces a <code>/wd"4101"</code> in properties -> C/C++ -> Command Line. However, when I compile my project, it still throws the <code>4101</code> warning. Why doesn't <code>/wd"4101"</code> and <code>/w44101</code> cancel out each other? </p>

<p>I am on Windows 10 with Visual Studio 2015. What is the correct way to disable this warning? It will be preferable if the proposed solutions could be invoked with some type of function in CMake since the <code>.sln</code> file of this code base is generated by CMake.</p>

<p>EDIT: This code base I am working on has a strict compile flag setup by default. It is compiled with <code>/W4</code> and <code>/WX</code>. Also additional level 4 warnings, to name a few as an example, <code>/w44101</code>, <code>/w44062</code>, <code>/w44191</code> etc.</p>