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>
This commit is contained in:
Kazuki Hashimoto 2022-05-07 10:48:30 +09:00
parent 97fc21adc1
commit 38314fe5fd

View File

@ -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;