MSVC - stop warnings in headers

后端 未结 3 1522
谎友^
谎友^ 2021-01-12 10:42

I\'m using MSVC with a CMaked project. As a result, I\'ve enabled many of the flags on MSVC which were enabled for gcc and clang. However, the /Wall warning level is giving

3条回答
  •  感动是毒
    2021-01-12 11:25

    You can disable specific warnings using the /wdXXXX flag where XXXX is the number of the warnings you wish to ignore. No need to modify the code.

提交回复
热议问题