warning C4995 vs error C4995

后端 未结 3 1395
面向向阳花
面向向阳花 2021-01-21 09:45

When I build a project (with VS2012) I get folowing output several times:

 warning C4995: \'DwmEnableComposition\': name was marked as #pragma deprecated
         


        
3条回答
  •  甜味超标
    2021-01-21 10:30

    I just confirmed this behavior in an existing project, in which I decided today to enable SDL checks in the unit test program for one of my C++ libraries. The function that flagged is one of my own that I marked as deprecated, but it has nothing to do with security, per se. So, I say that this begs the question; why is the compiler treating it as an error, when every other time I've used SDL checks that flagged such uses as swprintf, C4995 is a warning?

提交回复
热议问题