summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2021-09-13 07:28:09 +0200
committerBruno Haible <bruno@clisp.org>2021-09-13 07:28:09 +0200
commit29d79d473f52b0ec58f50c95ef782c66fc0ead21 (patch)
treee4b937aa1450bcf942f2ce88d036302fe5c977a8
parentaa35e17ac6d4749c017eea4b1920903277ce3f69 (diff)
downloadgnulib-29d79d473f52b0ec58f50c95ef782c66fc0ead21.tar.gz
extern-inline: Fix syntax error on macOS with GCC 11 (regr. 2021-08-22).
Reported by Akim Demaille in <https://lists.gnu.org/archive/html/bug-gnulib/2021-09/msg00052.html>. * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Put _GL_UNUSED before, not after, 'static'.
-rw-r--r--ChangeLog8
-rw-r--r--m4/extern-inline.m44
2 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index b9795d6581..f1e5cc7d66 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2021-09-13 Bruno Haible <bruno@clisp.org>
+
+ extern-inline: Fix syntax error on macOS with GCC 11 (regr. 2021-08-22).
+ Reported by Akim Demaille in
+ <https://lists.gnu.org/archive/html/bug-gnulib/2021-09/msg00052.html>.
+ * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Put _GL_UNUSED
+ before, not after, 'static'.
+
2021-09-11 Christian Weisgerber <naddy@mips.inka.de> (tiny change)
sigsegv: port to OpenBSD 6.8+ powerpc64
diff --git a/m4/extern-inline.m4 b/m4/extern-inline.m4
index a2acf126c8..94443f2125 100644
--- a/m4/extern-inline.m4
+++ b/m4/extern-inline.m4
@@ -83,8 +83,8 @@ AC_DEFUN([gl_EXTERN_INLINE],
# define _GL_EXTERN_INLINE extern
# define _GL_EXTERN_INLINE_IN_USE
#else
-# define _GL_INLINE static _GL_UNUSED
-# define _GL_EXTERN_INLINE static _GL_UNUSED
+# define _GL_INLINE _GL_UNUSED static
+# define _GL_EXTERN_INLINE _GL_UNUSED static
#endif
/* In GCC 4.6 (inclusive) to 5.1 (exclusive),