From 29d79d473f52b0ec58f50c95ef782c66fc0ead21 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 13 Sep 2021 07:28:09 +0200 Subject: extern-inline: Fix syntax error on macOS with GCC 11 (regr. 2021-08-22). Reported by Akim Demaille in . * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Put _GL_UNUSED before, not after, 'static'. --- m4/extern-inline.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'm4/extern-inline.m4') 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), -- cgit v1.2.1