Port to compilers where COMMON_INLINE is static

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.
This commit is contained in:
Paul Eggert
2025-11-15 13:38:44 -08:00
parent b53b39209e
commit db9ca8d754

View File

@@ -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)