]> git.ipfire.org Git - thirdparty/tar.git/commitdiff
Port to compilers where COMMON_INLINE is static
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 15 Nov 2025 21:38:44 +0000 (13:38 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 15 Nov 2025 23:10:48 +0000 (15:10 -0800)
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

index 784595f1161d29e2dfe36b0f095d72ef5db4fb32..84746572eedf8302088e7e5e4efe4ec87edecf44 100644 (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)