Fix compiler warnings when X11 autolaunch and launchd are both disabled
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 8 May 2013 14:26:14 +0000 (15:26 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 10 May 2013 10:34:42 +0000 (11:34 +0100)
commit863c989bb631d7063597db30fe8add3233cca7fd
treed8ed4a498b179f728c2303ad3868f623eba458a5
parenteabf6c42a1b779f57f2c08d35772035788657579
Fix compiler warnings when X11 autolaunch and launchd are both disabled

From the department of "if it isn't tested, it doesn't work". I tried
compiling dbus without an assortment of optional features:

    in_builddir ~/build/dbus/legacy ${MR_REPO}/configure \
        --enable-developer --enable-maintainer-mode --enable-tests \
        dbus_cv_sync_sub_and_fetch=no \
        --disable-selinux \
        --disable-inotify \
        --disable-dnotify \
        --disable-epoll \
        --disable-kqueue \
        --disable-launchd \
        --disable-systemd \
        --disable-libaudit \
        --without-valgrind \
        --disable-x11-autolaunch \
        && ...

and it resulted in -Wunused warnings.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=64362
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Thiago Macieira <thiago@kde.org>
dbus/dbus-sysdeps-unix.c
tools/dbus-launch.c