]> Savannah Git Hosting - gnulib.git/commitdiff
extern-inline: Fix syntax error on macOS with GCC 11 (regr. 2021-08-22).
authorBruno Haible <bruno@clisp.org>
Mon, 13 Sep 2021 05:28:09 +0000 (07:28 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 13 Sep 2021 05:28:09 +0000 (07:28 +0200)
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'.

ChangeLog
m4/extern-inline.m4

index b9795d6581acdde33b1a8329d292013ae90da210..f1e5cc7d6648cbe546b7a6bff19b0e5b20cfce6f 100644 (file)
--- 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
index a2acf126c87cc2cd8d63762aba1c722dcf6d3ec5..94443f2125452db4c26b1e676871e6386e4b452d 100644 (file)
@@ -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),