From e507ee0e7dae1461a663cd1e81f89bfe3b2fadef Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Tue, 27 Feb 2018 14:22:15 +0200 Subject: verbose: Inline when VERBOSE_FUNCTIONS disabled --- src/wrapper/verbose.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/wrapper/verbose.h b/src/wrapper/verbose.h index 00f72a0..3f54795 100644 --- a/src/wrapper/verbose.h +++ b/src/wrapper/verbose.h @@ -4,7 +4,12 @@ #include #include +#ifdef VERBOSE_FUNCTIONS +// Don't inline to get warnings from files that don't log at all static void +#else +static inline void +#endif verbose_log(const char *fmt, ...) { static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; -- cgit v1.2.3-70-g09d2