]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
dbus-launch: Fix unused variable warning when libX11 not present
authorSimon McVittie <smcv@collabora.com>
Fri, 28 Sep 2018 14:50:43 +0000 (15:50 +0100)
committerSimon McVittie <smcv@collabora.com>
Thu, 18 Oct 2018 15:30:56 +0000 (15:30 +0000)
Closes: https://gitlab.freedesktop.org/dbus/dbus/issues/228
Signed-off-by: Simon McVittie <smcv@collabora.com>
tools/dbus-launch.c

index 425914a19201d6c5ff38672a9ccbb010a389764b..7217d5b32c6a0fe96b96b39cb942a6623d1c8495 100644 (file)
@@ -846,7 +846,9 @@ main (int argc, char **argv)
   dbus_bool_t user_bus_supported = FALSE;
   DBusString user_bus;
   const char *error_str;
+#ifdef DBUS_BUILD_X11
   DBusError error = DBUS_ERROR_INIT;
+#endif
 
   exit_with_session = FALSE;
   config_file = NULL;