diff options
author | Zack Weinberg <zack@wolery.cumb.org> | 2000-08-03 08:26:36 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2000-08-03 08:26:36 +0000 |
commit | eae511892507a2bd8e23240d99990c7d8a85dc7a (patch) | |
tree | 43a4949e3b1ff2bcfe54987b64e225297a61ffa6 /gcc | |
parent | 6e185caa2654418f0ee43d7cb89930aefef9a295 (diff) | |
download | gcc-eae511892507a2bd8e23240d99990c7d8a85dc7a.zip gcc-eae511892507a2bd8e23240d99990c7d8a85dc7a.tar.gz gcc-eae511892507a2bd8e23240d99990c7d8a85dc7a.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/cp/decl2.c | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index a7a4cc8..80428d4 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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. diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 1211957..690a78d 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -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")) |