diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2013-06-13 16:18:30 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2013-06-13 16:18:30 +0100 |
commit | 57db30169fc9fd55e54f09fe7f22f6961859545f (patch) | |
tree | 8fca36d58270acef78f7be03438daac5ccffb4b3 /tools | |
parent | 1a69f641fbf8afc7ca46dcbe00981faa4bb9822a (diff) | |
download | dbus-57db30169fc9fd55e54f09fe7f22f6961859545f.tar.gz |
Fix Werror=unused-function if build without X11
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=65712
Signed-off-by: Chengwei Yang <chengwei.yang@intel.com>
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/dbus-launch.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/dbus-launch.c b/tools/dbus-launch.c index b2ffe41d..632a0042 100644 --- a/tools/dbus-launch.c +++ b/tools/dbus-launch.c @@ -105,6 +105,7 @@ save_machine_uuid (const char *uuid_arg) machine_uuid = xstrdup (uuid_arg); } +#ifdef DBUS_BUILD_X11 #define UUID_MAXLEN 40 /* Read the machine uuid from file if needed. Returns TRUE if machine_uuid is * set after this function */ @@ -146,7 +147,7 @@ out: fclose(f); return ret; } - +#endif /* DBUS_BUILD_X11 */ void verbose (const char *format, |