summaryrefslogtreecommitdiff
path: root/src/regex.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2012-07-03 17:36:28 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2012-07-03 17:36:28 -0700
commit63807d4757d1c2ab6e4e0c5ec537316fcb324436 (patch)
treee6da2e0c46822cc8cf6cd7e2c737f4b4ece70f1d /src/regex.c
parent39adff0d6323578236a6bd9022c42460e8628629 (diff)
downloademacs-63807d4757d1c2ab6e4e0c5ec537316fcb324436.tar.gz
* regex.c: Suppress GCC warning on RHEL 6. (Bug#11207)
Conditionalize the pragmas on GCC 4.5 or later, not GCC 4.3 or later, since GCC 4.4.6 issues a bogus warning for them.
Diffstat (limited to 'src/regex.c')
-rw-r--r--src/regex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regex.c b/src/regex.c
index 0b09e508b37..f3f70060b2e 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -35,7 +35,7 @@
/* Ignore some GCC warnings for now. This section should go away
once the Emacs and Gnulib regex code is merged. */
-#if (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) || 4 < __GNUC__
+#if (__GNUC__ == 4 && 5 <= __GNUC_MINOR__) || 4 < __GNUC__
# pragma GCC diagnostic ignored "-Wstrict-overflow"
# ifndef emacs
# pragma GCC diagnostic ignored "-Wunused-but-set-variable"