From 949d4f6f3338e77e835c964873eb364f7c91b2e9 Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Wed, 27 Sep 2017 11:47:09 +0200 Subject: [PATCH] tools: remove the redundant UNUSED define Use GPIOD_UNUSED instead. Signed-off-by: Bartosz Golaszewski --- src/tools/gpioset.c | 2 +- src/tools/tools-common.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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))) -- 2.30.2