]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Fix compile error with Xcode 4.6
authorDavid Givone <david@givone.net>
Wed, 30 Jan 2013 07:59:22 +0000 (23:59 -0800)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 3 Feb 2013 20:13:27 +0000 (21:13 +0100)
static function ... is used in an inline function with external linkage
[-Werror,-Wstatic-in-inline] use 'static' to give inline function ... internal
linkage

confitems_lookup.c
envtoconfitems_lookup.c

index e00ff9be7a85a775234ad96636930381e9b6d3b2..d5d1c22a2ee18c527937b779b12549dc912d3668 100644 (file)
@@ -75,6 +75,7 @@ confitems_hash (register const char *str, register unsigned int len)
   return len + asso_values[(unsigned char)str[1]] + asso_values[(unsigned char)str[0]];
 }
 
+static
 #ifdef __GNUC__
 __inline
 #ifdef __GNUC_STDC_INLINE__
index 8c99738e0ee9f58c8fb03ac5e8cac1be69c00e4e..7f6bea556dd9ba46c82d8ffdd2855159fbdc6311 100644 (file)
@@ -89,6 +89,7 @@ envtoconfitems_hash (register const char *str, register unsigned int len)
   return hval;
 }
 
+static
 #ifdef __GNUC__
 __inline
 #ifdef __GNUC_STDC_INLINE__