tools: mark a function static inline, needed for -O0 builds with clang
authorØyvind Kolås <pippin@gimp.org>
Tue, 22 Feb 2022 00:56:48 +0000 (01:56 +0100)
committerØyvind Kolås <pippin@gimp.org>
Tue, 22 Feb 2022 00:56:48 +0000 (01:56 +0100)
tools/babl-benchmark.c

index 32d66c2d296c979ecf876a07e162093f46d468e1..2310185a6a73a52039b64eb097907e8561ddc56c 100644 (file)
@@ -97,7 +97,7 @@ inline uint64_t bench_ticks (void) {
     return ((uint64_t)hi << 32 | lo) / 2100;
 }
 #else
-inline uint64_t bench_ticks (void) { return babl_ticks();}
+static inline uint64_t bench_ticks (void) { return babl_ticks();}
 #endif
 
 #if 0