Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22288

How to get the number of warnings/errors during the build?

$
0
0

Is this possible to easily get the number of warnings and errors during a build with gcc?

My current solution (which is ugly) is:

gcc foo.c 2>&1 | grep warning: | wc
gcc foo.c 2>&1 | grep error: | wc

Is there a better approach, a switch/option/flag to use?


Viewing all articles
Browse latest Browse all 22288

Latest Images

Trending Articles



Latest Images