This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
cc1.exe: warnings being treated as errors
- From: Jon Grant <jg at jguk dot org>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 19 Sep 2011 18:59:45 +0100
- Subject: cc1.exe: warnings being treated as errors
Hello
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? Just wondering if it could be
removed. Appears superfluous.
If compiling with g++ it is :
cc1plus: warnings being treated as errors
I saw this in two slightly old builds of GCC:
arm-none-eabi-gcc-4.5.1.exe (Sourcery G++ Lite 2010.09-51) 4.5.1
gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3
Please keep my email address in any replies as I'm not on the mailing list.
Best regards, Jon