diff options
author | Neil Booth <neil@cat.daikokuya.co.uk> | 2003-05-06 20:42:32 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2003-05-06 20:42:32 +0000 |
commit | 2c2bc09b1d2757be2d9fef1b9a3fc67e2c1db2ce (patch) | |
tree | fa745258bc38ca80d0caf8c5955e900c0ada52a1 /gcc/c-opts.c | |
parent | 2f3f95e9cd5604f4f66fd587640613dce0de1e19 (diff) | |
download | gcc-2c2bc09b1d2757be2d9fef1b9a3fc67e2c1db2ce.zip gcc-2c2bc09b1d2757be2d9fef1b9a3fc67e2c1db2ce.tar.gz gcc-2c2bc09b1d2757be2d9fef1b9a3fc67e2c1db2ce.tar.bz2 |
c-opts.c (COMMAND_LINE_OPTIONS): Reject -Wmissing-prototypes and -Wstrict-prototypes if C++.
* c-opts.c (COMMAND_LINE_OPTIONS): Reject -Wmissing-prototypes
and -Wstrict-prototypes if C++.
From-SVN: r66533
Diffstat (limited to 'gcc/c-opts.c')
-rw-r--r-- | gcc/c-opts.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/c-opts.c b/gcc/c-opts.c index 0a28982..bbceabb 100644 --- a/gcc/c-opts.c +++ b/gcc/c-opts.c @@ -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) \ @@ -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) \ |