dbus-launch: Fix unused variable warning when libX11 not present

Closes: https://gitlab.freedesktop.org/dbus/dbus/issues/228
Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie 2018-09-28 15:50:43 +01:00
parent c0bf0d185d
commit 93b7bb392b

View 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;