Skip to content

Commit

Permalink
* c-opts.c (COMMAND_LINE_OPTIONS): Reject -Wmissing-prototypes
Browse files Browse the repository at this point in the history
	and -Wstrict-prototypes if C++.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66533 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
neil committed May 6, 2003
1 parent f797f85 commit 3c1d6bb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions gcc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2003-05-06 <neil@cat.daikokuya.co.uk>

* c-opts.c (COMMAND_LINE_OPTIONS): Reject -Wmissing-prototypes
and -Wstrict-prototypes if C++.

2003-05-06 Aldy Hernandez <aldyh@redhat.com>

* config/rs6000/linuxspe.h: New file.
Expand Down
4 changes: 2 additions & 2 deletions gcc/c-opts.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ static void finish_options PARAMS ((void));
OPT("Wmissing-braces", CL_ALL, OPT_Wmissing_braces) \
OPT("Wmissing-declarations", CL_C, OPT_Wmissing_declarations) \
OPT("Wmissing-format-attribute",CL_ALL, OPT_Wmissing_format_attribute) \
OPT("Wmissing-prototypes", CL_ALL, OPT_Wmissing_prototypes) \
OPT("Wmissing-prototypes", CL_C, OPT_Wmissing_prototypes) \
OPT("Wmultichar", CL_ALL, OPT_Wmultichar) \
OPT("Wnested-externs", CL_C, OPT_Wnested_externs) \
OPT("Wnon-template-friend", CL_CXX, OPT_Wnon_template_friend) \
Expand All @@ -224,7 +224,7 @@ static void finish_options PARAMS ((void));
OPT("Wsequence-point", CL_C, OPT_Wsequence_point) \
OPT("Wsign-compare", CL_ALL, OPT_Wsign_compare) \
OPT("Wsign-promo", CL_CXX, OPT_Wsign_promo) \
OPT("Wstrict-prototypes", CL_ALL, OPT_Wstrict_prototypes) \
OPT("Wstrict-prototypes", CL_C, OPT_Wstrict_prototypes) \
OPT("Wsynth", CL_CXX, OPT_Wsynth) \
OPT("Wsystem-headers", CL_ALL, OPT_Wsystem_headers) \
OPT("Wtraditional", CL_C, OPT_Wtraditional) \
Expand Down

0 comments on commit 3c1d6bb

Please sign in to comment.