summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2023-06-10 17:16:03 +0200
committerGitHub <noreply@github.com>2023-06-10 17:16:03 +0200
commitf24f0a793ce62c1cb91eb17a2d3a00763c2bac3a (patch)
tree8adad8af12430df659384d1503ef05750637b3b9
parent5e2afd286a332b93481750821be4785fbbd555a4 (diff)
parent383766cb1c5c1f97b7e8624f3eaf019905e1dbae (diff)
downloadfork-ledger-f24f0a793ce62c1cb91eb17a2d3a00763c2bac3a.tar.gz
fork-ledger-f24f0a793ce62c1cb91eb17a2d3a00763c2bac3a.tar.bz2
fork-ledger-f24f0a793ce62c1cb91eb17a2d3a00763c2bac3a.zip
Merge pull request #2250 from afh/fix-no-assert
Fix compilation errors with NO_ASSERT
-rw-r--r--src/utils.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils.h b/src/utils.h
index a3fc9de5..c17c8fb1 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -44,6 +44,7 @@
#pragma once
#include <boost/uuid/detail/sha1.hpp>
+#include <ledger.hh>
#define TIMERS_ON 1
@@ -94,7 +95,7 @@ namespace ledger {
#else // !NO_ASSERTS
-#define assert(x)
+#define assert(x) ((void)(x))
#endif // !NO_ASSERTS