regex: correct #pragma guard expression
authorJim Meyering <meyering@redhat.com>
Wed, 4 Apr 2012 11:32:15 +0000 (13:32 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 4 Apr 2012 11:32:24 +0000 (13:32 +0200)
* lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
not 4.3.  Correct its cpp guard expression.

ChangeLog
lib/regex.c

index 2f8eb0f..d41141c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-04-04  Jim Meyering  <meyering@redhat.com>
+
+       regex: correct #pragma guard expression
+       * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
+       not 4.3.  Correct its cpp guard expression.
+
 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
 
        regex: remove unnecessary type punning
index a8e2341..ab27536 100644 (file)
 #ifndef _LIBC
 # include <config.h>
 
-# if (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) || 4 < __GNUC__
+# if (__GNUC__ == 4 && 6 <= __GNUC_MINOR__) || 4 < __GNUC__
 #  pragma GCC diagnostic ignored "-Wsuggest-attribute=pure"
+# endif
+# if (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) || 4 < __GNUC__
 #  pragma GCC diagnostic ignored "-Wtype-limits"
 # endif
 #endif