From db9ca8d754db9b4bd59d32836cc866d90c9019f3 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 15 Nov 2025 13:38:44 -0800 Subject: [PATCH] Port to compilers where COMMON_INLINE is static MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem found with clang 15.0 on CheriBSD. * src/names.c (namelist_match, register_match): Now plain static, not static COMMON_INLINE, since the later could mean the declaration is ‘static static’ which is not allowed. --- src/names.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/names.c b/src/names.c index 784595f1..84746572 100644 --- a/src/names.c +++ b/src/names.c @@ -1294,7 +1294,7 @@ namelist_match_from (struct name *p, char const *file_name, bool exact) return NULL; } -static COMMON_INLINE struct name * +static struct name * namelist_match (char const *file_name, bool exact) { return namelist_match_from (namelist, file_name, exact); @@ -1317,7 +1317,7 @@ remname (struct name *name) } /* Update CURSOR to remember that it matched FILE_NAME. */ -static COMMON_INLINE void +static void register_match (struct name *cursor, const char *file_name) { if (!(ISSLASH (file_name[cursor->length]) && recursion_option)