This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: cc1.exe: warnings being treated as errors
On 09/19/2011 06:59 PM, Jon Grant wrote:
>
> I noticed that when compiling C files with GCC and using the -Werror
> option, I see this additional output:
>
> cc1.exe: warnings being treated as errors
> ./src/main.c: In function 'main':
> ./src/main.c:41:15: error: unused variable 'hello'
>
> Is the "cc1" line output needed?
Oh, sure. It's really helpful to see an explanation as to why the
compilation stopped on an apparently legal C program.
Andrew.