diff options
| author | Paul Eggert | 2012-07-03 17:36:28 -0700 |
|---|---|---|
| committer | Paul Eggert | 2012-07-03 17:36:28 -0700 |
| commit | 63807d4757d1c2ab6e4e0c5ec537316fcb324436 (patch) | |
| tree | e6da2e0c46822cc8cf6cd7e2c737f4b4ece70f1d /src | |
| parent | 39adff0d6323578236a6bd9022c42460e8628629 (diff) | |
| download | emacs-63807d4757d1c2ab6e4e0c5ec537316fcb324436.tar.gz emacs-63807d4757d1c2ab6e4e0c5ec537316fcb324436.zip | |
* 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')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/regex.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 5433c2ff831..f01b49e3da0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2012-07-04 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2012-07-04 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * regex.c: Suppress GCC warning on RHEL 6. (Bug#11207) | ||
| 4 | Conditionalize the pragmas on GCC 4.5 or later, not GCC 4.3 or later, | ||
| 5 | since GCC 4.4.6 issues a bogus warning for them. | ||
| 6 | |||
| 3 | Fix bugs in file timestamp newness comparisons. | 7 | Fix bugs in file timestamp newness comparisons. |
| 4 | * fileio.c (Ffile_newer_than_file_p): | 8 | * fileio.c (Ffile_newer_than_file_p): |
| 5 | * lread.c (Fload): Use full timestamp resolution of files, | 9 | * lread.c (Fload): Use full timestamp resolution of files, |
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 @@ | |||
| 35 | 35 | ||
| 36 | /* Ignore some GCC warnings for now. This section should go away | 36 | /* Ignore some GCC warnings for now. This section should go away |
| 37 | once the Emacs and Gnulib regex code is merged. */ | 37 | once the Emacs and Gnulib regex code is merged. */ |
| 38 | #if (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) || 4 < __GNUC__ | 38 | #if (__GNUC__ == 4 && 5 <= __GNUC_MINOR__) || 4 < __GNUC__ |
| 39 | # pragma GCC diagnostic ignored "-Wstrict-overflow" | 39 | # pragma GCC diagnostic ignored "-Wstrict-overflow" |
| 40 | # ifndef emacs | 40 | # ifndef emacs |
| 41 | # pragma GCC diagnostic ignored "-Wunused-but-set-variable" | 41 | # pragma GCC diagnostic ignored "-Wunused-but-set-variable" |