Commit bd5fc78a authored by zack's avatar zack
Browse files

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

	-Wno-strict-prototypes.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35449 138bc75d-0d04-0410-961f-82ee72b054a4
parent 8310ca98
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.
......
......@@ -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"))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment