#pragma warning(disable: n)将某个警报置为失效

用#pragma预处理命令禁止此类警告,位置在#include后即可

如:#pragma warning(disable:4996)

错误 C4996 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. ConsoleApplication1...........

上一篇:MES分布式文件系统实验


下一篇:NDKr21使用clang交叉编译ffmpeg4.4