Mercurial > hg > octave-lojdl > gnulib-hg
changeset 16131:732c22001112
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.
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Tue, 29 Nov 2011 10:09:41 +0100 |
parents | 376ca4146b05 |
children | 46ec538d9591 |
files | ChangeLog lib/propername.c lib/quotearg.c |
diffstat | 3 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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
--- a/lib/quotearg.c +++ b/lib/quotearg.c @@ -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