[mutter] util: Fix compilation when !WITH_VERBOSE_MODE



commit 38314fe5fd56fef53968352447101571e7535e46
Author: Kazuki Hashimoto <kazukih tuta io>
Date:   Sat May 7 10:48:30 2022 +0900

    util: Fix compilation when !WITH_VERBOSE_MODE
    
    Fixes the following linker error:
    
    `meta_add_verbose_topic':
    <artificial>:(.text+0x372f): undefined reference to `ensure_logfile'
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2405>

 src/core/util.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/core/util.c b/src/core/util.c
index cbc5eba807..10c59ed7db 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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]