[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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 ---
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 ---
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: