Suppose I am working on a large code base that has warning w44101 enabled by default. Meaning if I go into my project and right click properties -> C/C++ -> Command Line -> /w44101 shows up in the additional options section.
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 4101, and this actually produces a /wd"4101" in properties -> C/C++ -> Command Line. However, when I compile my project, it still throws the 4101 warning. Why doesn't /wd"4101" and /w44101 cancel out each other?
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 .sln file of this code base is generated by CMake.
EDIT: This code base I am working on has a strict compile flag setup by default. It is compiled with /W4 and /WX. Also additional level 4 warnings, to name a few as an example, /w44101, /w44062, /w44191 etc.