Mercurial > hg > octave-kai > gnulib-hg
comparison lib/propername.c @ 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 | 8250f2777afc |
comparison
equal
deleted
inserted
replaced
16130:376ca4146b05 | 16131:732c22001112 |
---|---|
15 You should have received a copy of the GNU General Public License | 15 You should have received a copy of the GNU General Public License |
16 along with this program. If not, see <http://www.gnu.org/licenses/>. */ | 16 along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
17 | 17 |
18 /* Without this pragma, gcc 4.7.0 20111124 mistakenly suggests that | 18 /* Without this pragma, gcc 4.7.0 20111124 mistakenly suggests that |
19 the proper_name function might be candidate for attribute 'const' */ | 19 the proper_name function might be candidate for attribute 'const' */ |
20 #if (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) || 4 < __GNUC__ | 20 #if (__GNUC__ == 4 && 6 <= __GNUC_MINOR__) || 4 < __GNUC__ |
21 # pragma GCC diagnostic ignored "-Wsuggest-attribute=const" | 21 # pragma GCC diagnostic ignored "-Wsuggest-attribute=const" |
22 #endif | 22 #endif |
23 | 23 |
24 #include <config.h> | 24 #include <config.h> |
25 | 25 |