Re: cc1.exe: warnings being treated as errors

2011-10-06 Thread Jon Grant
Jonathan Wakely wrote, On 26/09/11 09:57: [.] Feel free to request a new option in Bugzilla to suppress the note, that's the right place for this discussion. Good point. I've created a ticket: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50643 Regards, Jon

Re: cc1.exe: warnings being treated as errors

2011-09-26 Thread Andrew Haley
On 09/26/2011 05:11 PM, Ian Lance Taylor wrote: > Andrew Haley writes: > >> 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 >>> ./sr

Re: cc1.exe: warnings being treated as errors

2011-09-26 Thread Ian Lance Taylor
Andrew Haley writes: > 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

Re: cc1.exe: warnings being treated as errors

2011-09-26 Thread Andrew Haley
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

Re: cc1.exe: warnings being treated as errors

2011-09-26 Thread Jonathan Wakely
On 26 September 2011 09:33, Jon Grant wrote: > For example: -Wall means I see "control reaches end of non-void function" > messages, but doesn't output "cc1.exe: all warnings turned on" But it does tell you which option that warning came from: [-Wreturn-type] So if you want to disable it you can

Re: cc1.exe: warnings being treated as errors

2011-09-26 Thread Jon Grant
Hi Jonathan Jonathan Wakely wrote, On 24/09/11 15:55: On 24 September 2011 15:40, Jon Grant wrote: It's kind of re-iterating the command line options, that the user will choose to be aware of already. I don't recall seeing that text output before about ~1 year ago. It was there in GCC 4.1, ma

Re: cc1.exe: warnings being treated as errors

2011-09-24 Thread Jakub Jelinek
On Sat, Sep 24, 2011 at 03:55:10PM +0100, Jonathan Wakely wrote: > On 24 September 2011 15:40, Jon Grant wrote: > > It's kind of re-iterating the command line options, that the user will > > choose to be aware of already. I don't recall seeing that text output before > > about ~1 year ago. > > It

Re: cc1.exe: warnings being treated as errors

2011-09-24 Thread Jonathan Wakely
On 24 September 2011 15:40, Jon Grant wrote: > It's kind of re-iterating the command line options, that the user will > choose to be aware of already. I don't recall seeing that text output before > about ~1 year ago. It was there in GCC 4.1, maybe earlier, I didn't check. > I'd thought because t

Re: cc1.exe: warnings being treated as errors

2011-09-24 Thread Jon Grant
Jonathan Wakely wrote, On 19/09/11 19:40: On 19 September 2011 18:59, Jon Grant wrote: 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

Re: cc1.exe: warnings being treated as errors

2011-09-19 Thread Jonathan Wakely
On 19 September 2011 18:59, Jon Grant wrote: > 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