From: Bartosz Golaszewski Date: Fri, 17 Feb 2023 12:54:05 +0000 (+0100) Subject: tools: remove unused defines X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e3408e9518efa85e3c1452f926222e3303bf63fb;p=qemu-gpiodev%2Flibgpiod.git tools: remove unused defines The UNUSED define is unused (sic!). Drop it. Same for ARRAY_SIZE(). Signed-off-by: Bartosz Golaszewski --- diff --git a/tools/tools-common.h b/tools/tools-common.h index 5d39170..434e5ba 100644 --- a/tools/tools-common.h +++ b/tools/tools-common.h @@ -15,9 +15,7 @@ */ #define NORETURN __attribute__((noreturn)) -#define UNUSED __attribute__((unused)) #define PRINTF(fmt, arg) __attribute__((format(printf, fmt, arg))) -#define ARRAY_SIZE(x) (sizeof(x) / sizeof(*(x))) #define GETOPT_NULL_LONGOPT NULL, 0, NULL, 0