summaryrefslogtreecommitdiff
path: root/src/wrapper
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-02-27 14:22:15 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2018-02-27 14:22:15 +0200
commite507ee0e7dae1461a663cd1e81f89bfe3b2fadef (patch)
tree9bb1b6459d0f0edd78d8816927815e84cec31c5d /src/wrapper
parent20ff7bdfeeb14ca1c74c466942fc5558aa267300 (diff)
verbose: Inline when VERBOSE_FUNCTIONS disabled
Diffstat (limited to 'src/wrapper')
-rw-r--r--src/wrapper/verbose.h5
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;