[gtk/wip/otte/macos-werror: 13/16] gtk-launch: Fix unused variable warning on macOS




commit b373b18b77f4c08818aea6e6fd82caae7168438c
Author: Benjamin Otte <otte redhat com>
Date:   Thu Nov 4 00:59:19 2021 +0100

    gtk-launch: Fix unused variable warning on macOS

 tools/gtk-launch.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/tools/gtk-launch.c b/tools/gtk-launch.c
index ec826f438b..260a001d1a 100644
--- a/tools/gtk-launch.c
+++ b/tools/gtk-launch.c
@@ -49,8 +49,10 @@ main (int argc, char *argv[])
   GOptionContext *context = NULL;
   char *summary;
   char *app_name;
-#ifdef G_OS_UNIX
+#if defined(HAVE_GIO_UNIX) && !defined(__APPLE__)
   char *desktop_file_name;
+#endif
+#ifdef G_OS_UNIX
   char *bus_name = NULL;
 #endif
   GAppInfo *info = NULL;


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