diff options
| author | Paul Eggert | 2016-06-12 10:31:25 -0700 |
|---|---|---|
| committer | Paul Eggert | 2016-06-12 10:33:52 -0700 |
| commit | ab182c624868fcc0ed97597db669911099d4bd28 (patch) | |
| tree | e9daecdac6ee59ab21768ed529cfdf6890d96122 /src/process.c | |
| parent | 37f8a470d068c7dbb77fa515f09a9153b59aad35 (diff) | |
| download | emacs-ab182c624868fcc0ed97597db669911099d4bd28.tar.gz emacs-ab182c624868fcc0ed97597db669911099d4bd28.zip | |
New macro GNUC_PREREQ for GCC version
* src/conf_post.h (GNUC_PREREQ): New macro.
Change uses of __GNUC_MINOR__ and __GNUC_PATCHLEVEL__ to use this
macro instead, for clarity and consistency.
(PRINTF_ARCHETYPE): New macro. Define it to __gnu_printf__ only
if glibc, since non-GNU platforms don’t necessarily support GNU
printf formats.
(ATTRIBUTE_FORMAT_PRINTF): Use it.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/process.c b/src/process.c index 4d287d8cc51..e669278f6e3 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -130,10 +130,10 @@ extern int sys_select (int, fd_set *, fd_set *, fd_set *, | |||
| 130 | struct timespec *, void *); | 130 | struct timespec *, void *); |
| 131 | #endif | 131 | #endif |
| 132 | 132 | ||
| 133 | /* Work around GCC 4.7.0 bug with strict overflow checking; see | 133 | /* Work around GCC 4.3.0 bug with strict overflow checking; see |
| 134 | <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52904>. | 134 | <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52904>. |
| 135 | This bug appears to be fixed in GCC 5.1, so don't work around it there. */ | 135 | This bug appears to be fixed in GCC 5.1, so don't work around it there. */ |
| 136 | #if __GNUC__ == 4 && __GNUC_MINOR__ >= 3 | 136 | #if GNUC_PREREQ (4, 3, 0) && ! GNUC_PREREQ (5, 1, 0) |
| 137 | # pragma GCC diagnostic ignored "-Wstrict-overflow" | 137 | # pragma GCC diagnostic ignored "-Wstrict-overflow" |
| 138 | #endif | 138 | #endif |
| 139 | 139 | ||