]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
build: fixed NDEBUG build
authorMarek Vavruša <marek.vavrusa@nic.cz>
Fri, 11 Dec 2015 09:50:46 +0000 (10:50 +0100)
committerMarek Vavruša <marek.vavrusa@nic.cz>
Fri, 11 Dec 2015 09:50:46 +0000 (10:50 +0100)
lib/utils.c

index b2511754411bc79cd4cee7136a2355624392c05c..4cad3f4ad7876f109feac5d8d04436adf0c08ec8 100644 (file)
@@ -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
+}