[mutter/gnome-42] util: Fix compilation when !WITH_VERBOSE_MODE



commit 0eced3d2efac7220773048aaf7300a062955a72e
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>
    (cherry picked from commit 38314fe5fd56fef53968352447101571e7535e46)

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