highlight and filter (gcc) compiler messages

后端 未结 8 1477
情话喂你
情话喂你 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:14

    You could pipe the output of your compile through grep:

    make 2> error.txt; grep -e error error.txt
    

提交回复
热议问题