dimanche 10 février 2019

Improving the readability of macro warnings (messages etc.) by removing unnecessary information

How can I STOP the extra information being outputed to the console, I do not need to know where the warning is (L:2), how can I stop the extra file, line and the ^ ~ (caret and tilde) line being shown (O:2 & O:3).

Am I the only one with this problem? I try the major search engines - on and off for about fortnight or so, about to give up. £-(

L:1 //  TestFile.CPP
L:2 #warning Loading temp config settings.
L:3 int main(){
L:4     return 0;
L:5 }

Output:-

O:1 W:\Prj\CPP\TestFile.CPP:2:2: warning: #warning Loading temp config settings. [-Wcpp]
O:2 #warning Loading temp config settings.
O:3  ^~~~~~~
O:4

In code above at L:2 I would be happy just to move O:2 & O:3 lines from the output and just show O:1.

Aucun commentaire:

Enregistrer un commentaire