regex: ignore old-style-definition warnings
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 20 Feb 2013 15:50:59 +0000 (07:50 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 20 Feb 2013 15:52:59 +0000 (07:52 -0800)
* lib/regex.c: Add pragma to ignore these warnings.
Problem reported for GNU tar by Pavel Raiskup.

ChangeLog
lib/regex.c

index a5b6b13..e66ca4c 100644 (file)
--- 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
index ca40e6e..361f763 100644 (file)
@@ -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