diff options
| author | Tom Tromey | 2013-07-06 23:18:58 -0600 |
|---|---|---|
| committer | Tom Tromey | 2013-07-06 23:18:58 -0600 |
| commit | 6dacdad5fcb278e5a16b38bb81786aac9ca27be4 (patch) | |
| tree | f5f331ea361ba0f99e0f9b638d183ad492a7da31 /lib | |
| parent | 0a6f2ff0c8ceb29703e76cddd46ea3f176dd873a (diff) | |
| parent | 219afb88d9d484393418820d1c08dc93299110ec (diff) | |
| download | emacs-6dacdad5fcb278e5a16b38bb81786aac9ca27be4.tar.gz emacs-6dacdad5fcb278e5a16b38bb81786aac9ca27be4.zip | |
merge from trunk
this merges frmo trunk and fixes various build issues.
this needed a few ugly tweaks.
this hangs in "make check" now
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/ignore-value.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/ignore-value.h b/lib/ignore-value.h index 63ecde85136..ebd6bf42f56 100644 --- a/lib/ignore-value.h +++ b/lib/ignore-value.h | |||
| @@ -33,15 +33,16 @@ | |||
| 33 | declared with attribute warn_unused_result". */ | 33 | declared with attribute warn_unused_result". */ |
| 34 | 34 | ||
| 35 | #ifndef _GL_IGNORE_VALUE_H | 35 | #ifndef _GL_IGNORE_VALUE_H |
| 36 | # define _GL_IGNORE_VALUE_H | 36 | #define _GL_IGNORE_VALUE_H |
| 37 | 37 | ||
| 38 | /* The __attribute__((__warn_unused_result__)) feature | 38 | /* The __attribute__((__warn_unused_result__)) feature |
| 39 | is available in gcc versions 3.4 and newer, | 39 | is available in gcc versions 3.4 and newer, |
| 40 | while the typeof feature has been available since 2.7 at least. */ | 40 | while the typeof feature has been available since 2.7 at least. */ |
| 41 | # if __GNUC__ < 3 || (__GNUC__ == 3 && __GNUC_MINOR__ < 4) | 41 | #if 3 < __GNUC__ + (4 <= __GNUC_MINOR__) |
| 42 | # define ignore_value(x) ((void) (x)) | 42 | # define ignore_value(x) \ |
| 43 | # else | 43 | (__extension__ ({ __typeof__ (x) __x = (x); (void) __x; })) |
| 44 | # define ignore_value(x) (({ __typeof__ (x) __x = (x); (void) __x; })) | 44 | #else |
| 45 | # endif | 45 | # define ignore_value(x) ((void) (x)) |
| 46 | #endif | ||
| 46 | 47 | ||
| 47 | #endif | 48 | #endif |