From bf7e6d5775ebd8177ca68810fc57e18477b54965 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marek=20Vavru=C5=A1a?= <marek.vavrusa@nic.cz>
Date: Fri, 11 Dec 2015 10:50:46 +0100
Subject: [PATCH] build: fixed NDEBUG build

---
 lib/utils.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/lib/utils.c b/lib/utils.c
index b25117544..4cad3f4ad 100644
--- a/lib/utils.c
+++ b/lib/utils.c
@@ -65,6 +65,11 @@ static inline int u16tostr(uint8_t *dst, uint16_t num)
  * Cleanup callbacks.
  */
 
+/* Always compile-in log symbols, even if disabled. */
+#undef kr_debug_set
+#undef kr_debug_status
+#undef kr_log_debug
+
 bool kr_debug_set(bool status)
 {
 	return _env_debug = status;
@@ -407,4 +412,4 @@ char *kr_module_call(struct kr_context *ctx, const char *module, const char *pro
 		}
 	}
 	return NULL;
-}
\ No newline at end of file
+}
-- 
GitLab