changeset 17336:e27f620a8d36

regex: ignore old-style-definition warnings * lib/regex.c: Add pragma to ignore these warnings. Problem reported for GNU tar by Pavel Raiskup.
author Paul Eggert <eggert@cs.ucla.edu>
date Wed, 20 Feb 2013 07:50:59 -0800
parents 840c32a600aa
children cec099cbf54f
files ChangeLog lib/regex.c
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Feb 20 00:04:35 2013 -0800
+++ b/ChangeLog	Wed Feb 20 07:50:59 2013 -0800
@@ -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
--- a/lib/regex.c	Wed Feb 20 00:04:35 2013 -0800
+++ b/lib/regex.c	Wed Feb 20 07:50:59 2013 -0800
@@ -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