Bug#616634: marked as done (gcc-4.6: errors from -pedantic -Werror say "[-Werror=edantic]")
Your message dated Sun, 13 May 2012 22:38:54 -0500
with message-id <20120514033854.GA5970@burratino>
and subject line Re: gcc-4.6: errors from -pedantic -Werror say "[-Werror=edantic]"
has caused the Debian Bug report #616634,
regarding gcc-4.6: errors from -pedantic -Werror say "[-Werror=edantic]"
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)
--
616634: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=616634
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: submit@bugs.debian.org
- Subject: gcc-4.6: errors from -pedantic -Werror say "[-Werror=edantic]"
- From: Jonathan Nieder <jrnieder@gmail.com>
- Date: Sun, 6 Mar 2011 00:03:37 -0600
- Message-id: <20110306060337.GA30121@elie>
Package: gcc-4.6
Version: 4.6-20110227-1
Severity: minor
Justification: cosmetic
Tags: upstream
Using -Werror with -pedantic to catch constructs the standard does not
permit:
$ ./test.c; # case (1)
./test.c:6:7: warning: ISO C90 does not support flexible array members [-pedantic]
$ ./test.c -Werror; # case (2)
./test.c:6:7: error: ISO C90 does not support flexible array members [-Werror=edantic]
cc1: all warnings being treated as errors
$ ./test.c -pedantic-errors; # case (3)
./test.c:6:7: error: ISO C90 does not support flexible array members [-pedantic]
$
$ cat test.c
#if 0
exec gcc -c -std=c89 -pedantic "$0" "$@"
#else
struct foo {
int dummy;
char flex[];
};
#endif
In case (2), I would expect something like "[-pedantic-errors]" or
"[-Werror=pedantic]". In general, I love these machine-parseable warnings.
--- End Message ---
--- Begin Message ---
- To: 616634-done@bugs.debian.org
- Subject: Re: gcc-4.6: errors from -pedantic -Werror say "[-Werror=edantic]"
- From: Jonathan Nieder <jrnieder@gmail.com>
- Date: Sun, 13 May 2012 22:38:54 -0500
- Message-id: <20120514033854.GA5970@burratino>
- In-reply-to: <20110306060337.GA30121@elie>
- References: <20110306060337.GA30121@elie>
Version: 20120501-1
reassign 616634 gcc-snapshot 20120407-1
affects 616634 + gcc-4.7
forwarded 616634 http://gcc.gnu.org/PR44774
tags 616634 + patch
quit
Jonathan Nieder wrote:
> $ ./test.c -Werror; # case (2)
> ./test.c:6:7: error: ISO C90 does not support flexible array members [-Werror=edantic]
Fixed by r186681, 2012-04-22. (Current gcc-4.7 is still affected and
gcc-snapshot works fine.) Thanks again for your help.
--- End Message ---
Reply to: