How to suppress specific warnings in g++

后端 未结 4 1434
小鲜肉
小鲜肉 2020-12-06 04:03

I want to suppress specific warnings from g++. I\'m aware of the -Wno-XXX flag, but I\'m looking for something more specific. I want some of th

4条回答
  •  悲哀的现实
    2020-12-06 04:34

    For some warnings, there is a command line switch to disable them. In order to know which switch to use, pass -fdiagnostics-show-option to gcc.

提交回复
热议问题