This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/63498] New: spurious warning about unrecognized command line option "-Wno-typedef-redefinition"
- From: "zbyszek at in dot waw.pl" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 09 Oct 2014 16:33:52 +0000
- Subject: [Bug c/63498] New: spurious warning about unrecognized command line option "-Wno-typedef-redefinition"
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63498
Bug ID: 63498
Summary: spurious warning about unrecognized command line
option "-Wno-typedef-redefinition"
Product: gcc
Version: 4.9.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: zbyszek at in dot waw.pl
With the following program:
# test.c
int main(){}
when compiled with 'gcc -Wall -Wno-typedef-redefinition test.c' I get two
warnings, the second one is wrong, because -Wno-typedef-redefinition is a
documented option:
$ gcc -Wall -Wno-typedef-redefinition test.c
test.c: In function âmainâ:
test.c:1:1: warning: control reaches end of non-void function [-Wreturn-type]
int main(){}
^
test.c: At top level:
cc1: warning: unrecognized command line option "-Wno-typedef-redefinition"
This warning is emitted only when at least one other warning is emitted.
$ rpm -q gcc
gcc-4.9.1-11.fc21.x86_64
(But older versions exhibit this behaviour too.)