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

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 22118

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>