更新时间:2022-06-11 21:14:06
使用 -Wno-pragma -once-outside-header 命令行参数。请在此处查阅Clang文档。
-Wno-pragma -once-outside-header
Use the -Wno-pragma-once-outside-header command line argument. Consult the Clang documentation here.
-Wno-pragma-once-outside-header
是否可以在clang中禁用此警告?警告:#pragma一次进入主文件