更新时间:2022-02-15 00:29:12
显然,新项目现在默认启用SDK检查,将这些警告视为错误。要禁用它,请转到项目属性 - >配置属性 - > C / C ++ - >常规 - > SDL检查 - >否。
Apparently new projects enable "SDK check" by default now, which treats these warnings as errors. To disable it, go to project properties -> Configuration Properties -> C/C++ -> General -> SDL checks -> No.