summaryrefslogtreecommitdiff
path: root/src/wrapper
diff options
context:
space:
mode:
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;