diff options
author | Jim Meyering <meyering@redhat.com> | 2012-04-04 13:32:15 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-04-04 13:32:24 +0200 |
commit | d4cecf1ee37f6b611ef092c9c7fa3761d02ce2c3 (patch) | |
tree | 0012cc6aa450747d14807784b9dc04bbf206723c /lib/regex.c | |
parent | 705a87c9f863825cf8f335bcfcb869eb466da7b4 (diff) | |
download | gnulib-d4cecf1ee37f6b611ef092c9c7fa3761d02ce2c3.tar.gz |
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.
Diffstat (limited to 'lib/regex.c')
-rw-r--r-- | lib/regex.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/regex.c b/lib/regex.c index a8e2341ca8..ab27536c84 100644 --- a/lib/regex.c +++ b/lib/regex.c @@ -19,8 +19,10 @@ #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 |