From bd5fc78a3601fe6d25552d581ac1a25541ef6e66 Mon Sep 17 00:00:00 2001
From: zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Thu, 3 Aug 2000 08:26:36 +0000
Subject: [PATCH] 	* 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
---
 gcc/cp/ChangeLog | 3 +++
 gcc/cp/decl2.c   | 5 +++++
 2 files changed, 8 insertions(+)

diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index a7a4cc8d2f7..80428d4494c 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 1211957391e..690a78de6cf 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"))
-- 
GitLab