From 57db30169fc9fd55e54f09fe7f22f6961859545f Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 13 Jun 2013 16:18:30 +0100 Subject: [PATCH] Fix Werror=unused-function if build without X11 Bug: https://bugs.freedesktop.org/show_bug.cgi?id=65712 Signed-off-by: Chengwei Yang Reviewed-by: Simon McVittie --- tools/dbus-launch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/dbus-launch.c b/tools/dbus-launch.c index b2ffe41d7..632a0042c 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, -- 2.47.3