From 38314fe5fd56fef53968352447101571e7535e46 Mon Sep 17 00:00:00 2001 From: Kazuki Hashimoto Date: Sat, 7 May 2022 10:48:30 +0900 Subject: [PATCH] util: Fix compilation when !WITH_VERBOSE_MODE Fixes the following linker error: `meta_add_verbose_topic': :(.text+0x372f): undefined reference to `ensure_logfile' Part-of: --- src/core/util.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/util.c b/src/core/util.c index cbc5eba80..10c59ed7d 100644 --- a/src/core/util.c +++ b/src/core/util.c @@ -161,7 +161,9 @@ meta_add_verbose_topic (MetaDebugTopic topic) if (verbose_topics == META_DEBUG_VERBOSE) return; +#ifdef WITH_VERBOSE_MODE ensure_logfile (); +#endif if (topic == META_DEBUG_VERBOSE) verbose_topics = META_DEBUG_VERBOSE;