[babl] tools: mark a function static inline, needed for -O0 builds with clang



commit 33b18e74c9589fd4d5507ab88bd1fb19c15965dd
Author: Øyvind Kolås <pippin gimp org>
Date:   Tue Feb 22 01:56:48 2022 +0100

    tools: mark a function static inline, needed for -O0 builds with clang

 tools/babl-benchmark.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tools/babl-benchmark.c b/tools/babl-benchmark.c
index 32d66c2d2..2310185a6 100644
--- a/tools/babl-benchmark.c
+++ b/tools/babl-benchmark.c
@@ -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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]