]> Savannah Git Hosting - gnulib.git/commitdiff
quotearg, propername: correct pragma guard expression
authorJim Meyering <meyering@redhat.com>
Tue, 29 Nov 2011 09:09:41 +0000 (10:09 +0100)
committerJim Meyering <meyering@redhat.com>
Tue, 29 Nov 2011 09:09:55 +0000 (10:09 +0100)
* lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
* lib/propername.c: Likewise.  Reported by Bernhard Voelker.

ChangeLog
lib/propername.c
lib/quotearg.c

index 28fbe90a839e544ff1ab38f3da5cf7393e501f44..dddd333809716d667b9a689503247d92e0a4817d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-11-29  Jim Meyering  <meyering@redhat.com>
+
+       quotearg, propername: correct pragma guard expression
+       * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
+       * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
+
 2011-11-28  Jim Meyering  <meyering@redhat.com>
 
        propername: do not mark proper_name with the const attribute
index 346c31048640dd2554d4e99f6682b5e800585bc6..31fc96a808b27187afb595d86d849d34d3b88a84 100644 (file)
@@ -17,7 +17,7 @@
 
 /* Without this pragma, gcc 4.7.0 20111124 mistakenly suggests that
    the proper_name function might be candidate for attribute 'const'  */
-#if (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) || 4 < __GNUC__
+#if (__GNUC__ == 4 && 6 <= __GNUC_MINOR__) || 4 < __GNUC__
 # pragma GCC diagnostic ignored "-Wsuggest-attribute=const"
 #endif
 
index 3c154117daa60002bfa2c1f4276f9cf2ce904606..03fbfe79720a69f966b28d83adef00c261685e95 100644 (file)
@@ -20,7 +20,7 @@
 /* Without this pragma, gcc 4.7.0 20111124 mistakenly suggests that
    the quoting_options_from_style function might be candidate for
    attribute 'pure'  */
-#if (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) || 4 < __GNUC__
+#if (__GNUC__ == 4 && 6 <= __GNUC_MINOR__) || 4 < __GNUC__
 # pragma GCC diagnostic ignored "-Wsuggest-attribute=pure"
 #endif