summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2021-11-28 13:20:46 +0100
committerJoel Klinghed <the_jk@spawned.biz>2021-11-28 13:20:46 +0100
commit07501aa8061ab451456312854070d0dc61a25c03 (patch)
tree0512f433b0a78c6e1dec28183f1d486a475bf3e6
parentf70495a48646e54272783b4b709aca0396cb85f8 (diff)
Fix building tests in release
-rw-r--r--test/test_daemon.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_daemon.cc b/test/test_daemon.cc
index 04ba105..e2c0db7 100644
--- a/test/test_daemon.cc
+++ b/test/test_daemon.cc
@@ -38,12 +38,14 @@ public:
va_end(args);
}
+#ifndef NDEBUG
void dbg(char const* format, ...) override {
va_list args;
va_start(args, format);
vlog("dbg", format, args);
va_end(args);
}
+#endif
void vlog(std::string level, char const* format, va_list args) {
if (strcmp(format, "%s") == 0) {