[gnome-terminal] client: utils: Fix unused function warning on non-debug build



commit 1e30be19894c78ddd92fe8b9643e88c3fe495e4f
Author: Christian Persch <chpe src gnome org>
Date:   Tue Sep 13 20:49:54 2022 +0200

    client: utils: Fix unused function warning on non-debug build

 src/terminal-client-utils.cc | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/terminal-client-utils.cc b/src/terminal-client-utils.cc
index 8604a22d..ef8553bd 100644
--- a/src/terminal-client-utils.cc
+++ b/src/terminal-client-utils.cc
@@ -40,6 +40,8 @@
 #include <gdk/gdkx.h>
 #endif
 
+#ifdef ENABLE_DEBUG
+
 static char*
 get_binary_path_if_uninstalled(char const* install_dir) noexcept
 {
@@ -80,6 +82,8 @@ get_path_if_uninstalled(char const* exe_install_dir,
   return reinterpret_cast<char*>(g_steal_pointer(&path));
 }
 
+#endif /* ENABLE_DEBUG */
+
 /**
  * terminal_client_find_file_uninstalled:
  * @exe_install_dir: the directory where the current exe is installed


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