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




commit 428d3cc41496d9f02f458b656d3e643b8d6e1804
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 9305095ea2..787cbcbce6 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]