diff options
| author | Paul Eggert | 2013-07-01 16:43:19 -0700 |
|---|---|---|
| committer | Paul Eggert | 2013-07-01 16:43:19 -0700 |
| commit | aaea7495957f5b82fe4e1c8a90a8d96cd77c0001 (patch) | |
| tree | aad1d58e24582aca9744e8c51ad1d514e1a5615f | |
| parent | ab71f1741c2583d2ae7c753743fc5da49a5ad093 (diff) | |
| download | emacs-aaea7495957f5b82fe4e1c8a90a8d96cd77c0001.tar.gz emacs-aaea7495957f5b82fe4e1c8a90a8d96cd77c0001.zip | |
Merge from gnulib.
This incorporates:
2013-06-23 ignore-value: port to gcc -pedantic
2013-06-21 extern-inline: port to gcc -std=c89
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | lib/ignore-value.h | 13 | ||||
| -rw-r--r-- | m4/extern-inline.m4 | 3 |
3 files changed, 13 insertions, 7 deletions
| @@ -1,5 +1,9 @@ | |||
| 1 | 2013-06-30 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2013-06-30 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | Merge from gnulib, incorporating: | ||
| 4 | 2013-06-23 ignore-value: port to gcc -pedantic | ||
| 5 | 2013-06-21 extern-inline: port to gcc -std=c89 | ||
| 6 | |||
| 3 | Do not use GTK 3 if it exists but cannot be compiled. | 7 | Do not use GTK 3 if it exists but cannot be compiled. |
| 4 | * configure.ac: Leave GTK_OBJ and term_header alone if GTK 3 | 8 | * configure.ac: Leave GTK_OBJ and term_header alone if GTK 3 |
| 5 | exists but cannot be compiled. | 9 | exists but cannot be compiled. |
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 |
diff --git a/m4/extern-inline.m4 b/m4/extern-inline.m4 index 4e801e31f41..c4c5e7f221b 100644 --- a/m4/extern-inline.m4 +++ b/m4/extern-inline.m4 | |||
| @@ -31,7 +31,8 @@ AC_DEFUN([gl_EXTERN_INLINE], | |||
| 31 | && !defined __APPLE__) | 31 | && !defined __APPLE__) |
| 32 | # define _GL_INLINE inline | 32 | # define _GL_INLINE inline |
| 33 | # define _GL_EXTERN_INLINE extern inline | 33 | # define _GL_EXTERN_INLINE extern inline |
| 34 | #elif 2 < __GNUC__ + (7 <= __GNUC_MINOR__) && !defined __APPLE__ | 34 | #elif (2 < __GNUC__ + (7 <= __GNUC_MINOR__) && !defined __STRICT_ANSI__ \ |
| 35 | && !defined __APPLE__) | ||
| 35 | # if __GNUC_GNU_INLINE__ | 36 | # if __GNUC_GNU_INLINE__ |
| 36 | /* __gnu_inline__ suppresses a GCC 4.2 diagnostic. */ | 37 | /* __gnu_inline__ suppresses a GCC 4.2 diagnostic. */ |
| 37 | # define _GL_INLINE extern inline __attribute__ ((__gnu_inline__)) | 38 | # define _GL_INLINE extern inline __attribute__ ((__gnu_inline__)) |