From: Paul Eggert <eggert@cs.ucla.edu>
Date: Wed, 20 Feb 2013 15:50:59 +0000 (-0800)
Subject: regex: ignore old-style-definition warnings
X-Git-Tag: v0.1~193
X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=c042abf1678115fe6ab736a1c12a83ff395ea7c4;p=gnulib.git

regex: ignore old-style-definition warnings

* lib/regex.c: Add pragma to ignore these warnings.
Problem reported for GNU tar by Pavel Raiskup.
---

diff --git a/ChangeLog b/ChangeLog
index a5b6b1363d..e66ca4c4f6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
+
+	regex: ignore old-style-definition warnings
+	* lib/regex.c: Add pragma to ignore these warnings.
+	Problem reported for GNU tar by Pavel Raiskup.
+
 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
 
 	getcwd: support coreutils better
diff --git a/lib/regex.c b/lib/regex.c
index ca40e6ec4f..361f763ea6 100644
--- a/lib/regex.c
+++ b/lib/regex.c
@@ -24,6 +24,7 @@
 #  pragma GCC diagnostic ignored "-Wsuggest-attribute=pure"
 # endif
 # if (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) || 4 < __GNUC__
+#  pragma GCC diagnostic ignored "-Wold-style-definition"
 #  pragma GCC diagnostic ignored "-Wtype-limits"
 # endif
 #endif