decl2.c: Silently ignore -Wstrict-prototypes; warn about -Wno-strict-prototypes.

* decl2.c: Silently ignore -Wstrict-prototypes; warn about
	-Wno-strict-prototypes.

From-SVN: r35449
This commit is contained in:
Zack Weinberg 2000-08-03 08:26:36 +00:00 committed by Zack Weinberg
parent 6e185caa26
commit eae5118925
2 changed files with 8 additions and 0 deletions

View file

@ -1,5 +1,8 @@
2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
* decl2.c: Silently ignore -Wstrict-prototypes; warn about
-Wno-strict-prototypes.
* g++spec.c: Adjust type of second argument to
lang_specific_driver, and update code as necessary.

View file

@ -737,6 +737,11 @@ lang_decode_option (argc, argv)
warn_pointer_arith = setting;
else if (!strcmp (p, "missing-prototypes"))
warn_missing_prototypes = setting;
else if (!strcmp (p, "strict-prototypes"))
{
if (setting == 0)
warning ("-Wno-strict-prototypes is not supported in C++");
}
else if (!strcmp (p, "redundant-decls"))
warn_redundant_decls = setting;
else if (!strcmp (p, "missing-braces"))