From: Bartosz Golaszewski Date: Wed, 27 Sep 2017 09:47:09 +0000 (+0200) Subject: tools: remove the redundant UNUSED define X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=949d4f6f3338e77e835c964873eb364f7c91b2e9;p=qemu-gpiodev%2Flibgpiod.git tools: remove the redundant UNUSED define Use GPIOD_UNUSED instead. Signed-off-by: Bartosz Golaszewski --- diff --git a/src/tools/gpioset.c b/src/tools/gpioset.c index c14f93e..b0d60ed 100644 --- a/src/tools/gpioset.c +++ b/src/tools/gpioset.c @@ -74,7 +74,7 @@ static void maybe_daemonize(bool daemonize) } } -static void wait_enter(void *data UNUSED) +static void wait_enter(void *data GPIOD_UNUSED) { getchar(); } diff --git a/src/tools/tools-common.h b/src/tools/tools-common.h index defa109..78c7cd2 100644 --- a/src/tools/tools-common.h +++ b/src/tools/tools-common.h @@ -18,7 +18,6 @@ * common code. */ -#define UNUSED __attribute__((unused)) #define PRINTF(fmt, arg) __attribute__((format(printf, fmt, arg))) #define ARRAY_SIZE(x) (sizeof(x) / sizeof(*(x)))