mirror of
https://git.savannah.gnu.org/git/tar.git
synced 2026-04-25 19:10:46 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user