diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2018-02-27 14:22:15 +0200 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2018-02-27 14:22:15 +0200 |
commit | e507ee0e7dae1461a663cd1e81f89bfe3b2fadef (patch) | |
tree | 9bb1b6459d0f0edd78d8816927815e84cec31c5d /src | |
parent | 20ff7bdfeeb14ca1c74c466942fc5558aa267300 (diff) |
verbose: Inline when VERBOSE_FUNCTIONS disabled
Diffstat (limited to 'src')
-rw-r--r-- | src/wrapper/verbose.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 <stdarg.h> #include <pthread.h> +#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; |