From: Marek VavruĊĦa Date: Fri, 11 Dec 2015 09:50:46 +0000 (+0100) Subject: build: fixed NDEBUG build X-Git-Tag: v1.0.0-beta3~28 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bf7e6d5775ebd8177ca68810fc57e18477b54965;p=thirdparty%2Fknot-resolver.git build: fixed NDEBUG build --- 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 +}