From 93b7bb392b6dab4e5ae7ce99cd8d99d1c9ff55d0 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 28 Sep 2018 15:50:43 +0100 Subject: [PATCH] dbus-launch: Fix unused variable warning when libX11 not present Closes: https://gitlab.freedesktop.org/dbus/dbus/issues/228 Signed-off-by: Simon McVittie --- tools/dbus-launch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/dbus-launch.c b/tools/dbus-launch.c index 425914a19..7217d5b32 100644 --- a/tools/dbus-launch.c +++ b/tools/dbus-launch.c @@ -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; -- 2.47.3