highlight and filter (gcc) compiler messages

后端 未结 8 1378
情话喂你
情话喂你 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条回答
  •  再見小時候
    2021-01-06 09:26

    The warn_summary script is pretty nice

    You can get a count of all your warnings, the type and also just print out the warnings without all the other output from gcc.

    gcc <...> | tee buildoutput
    warn_summary -s 0 -wpass buildoutput
    warn_summary -s 0 buildoutput
    

提交回复
热议问题