I am upgrading some legacy c++ code, to Visual Studio 2019, and am getting the "C4996" compiler error.
The "Disable Specific Warnings" build option is not working. I have confirmed that /wd"4996" is present in the command line. However, I still get the C4996 error, when I build. I followed these instructions
char temp[256] = { 0 };
char *upper = strupr(temp);
I expect the build error to go away, however it persists.
Here is a screenshot, of a sample project, exhibiting the error:
Also, adding "#pragma warning(disable : 4996)" to the code, does eliminate the Warning/Error, as expected. However, this is not an ideal solution because of the large number of lines of code that would need to change. I am looking for a project wide solution, which to my knowledge "Disable Specific Warnings" should provide.