From 9f2b813ed0c4e71147d07c2b9ecf4dad8d03f348 Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Mon, 2 Oct 2017 14:48:03 +0200 Subject: [PATCH] core: group the GCC attributes together Put the defines wrapping the gcc attributes in the same place in gpiod.h. Signed-off-by: Bartosz Golaszewski --- include/gpiod.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/gpiod.h b/include/gpiod.h index ca6412b..2e23b5c 100644 --- a/include/gpiod.h +++ b/include/gpiod.h @@ -44,6 +44,11 @@ struct gpiod_chip_iter; */ #define GPIOD_API __attribute__((visibility("default"))) +/** + * @brief Marks a function argument or variable as potentially unused. + */ +#define GPIOD_UNUSED __attribute__((unused)) + /** * @brief Shift 1 by given offset. * @param nr Bit position. @@ -51,11 +56,6 @@ struct gpiod_chip_iter; */ #define GPIOD_BIT(nr) (1UL << (nr)) -/** - * @brief Marks a function argument or variable as potentially unused. - */ -#define GPIOD_UNUSED __attribute__((unused)) - /** * @} * -- 2.30.2