highlight and filter (gcc) compiler messages

后端 未结 8 1488
情话喂你
情话喂你 2021-01-06 09:11

i\'m currently refactoring a C-project, throwing about 1000 warnings at me. is there a way to highlight and filter these warnings. (eg make all index warnings red, unused bl

8条回答
  •  旧时难觅i
    2021-01-06 09:16

    Gcc 4.9 seems to have added this feature via the -fdiagnostics-color flag: http://gcc.gnu.org/onlinedocs/gcc/Language-Independent-Options.html#index-fdiagnostics-color-246

提交回复
热议问题