summaryrefslogtreecommitdiff
path: root/lib/propername.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-11-29 10:09:41 +0100
committerJim Meyering <meyering@redhat.com>2011-11-29 10:09:55 +0100
commit2ae12d77e599965beb1483c10edb1f2f290bafc1 (patch)
tree9de4b60210959367f59db7b3b5046ca761505a2b /lib/propername.c
parent69f517e5975418e7b2c5033f8f60191919f44b9d (diff)
downloadgnulib-2ae12d77e599965beb1483c10edb1f2f290bafc1.tar.gz
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.
Diffstat (limited to 'lib/propername.c')
-rw-r--r--lib/propername.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/propername.c b/lib/propername.c
index 346c310486..31fc96a808 100644
--- a/lib/propername.c
+++ b/lib/propername.c
@@ -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