From: Bartosz Golaszewski Date: Mon, 2 Oct 2017 12:48:03 +0000 (+0200) Subject: core: group the GCC attributes together X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9f2b813ed0c4e71147d07c2b9ecf4dad8d03f348;p=qemu-gpiodev%2Flibgpiod.git 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 --- 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)) - /** * @} *