GPIOD_UNUSED symbol isn't used in any public part of the library. We
can unexport it and put it into tools-common.h for use by tools only.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
*/
#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.
}
}
-static void handle_signal(int signum GPIOD_UNUSED)
+static void handle_signal(int signum UNUSED)
{
exit(EXIT_SUCCESS);
}
}
}
-static void wait_enter(void *data GPIOD_UNUSED)
+static void wait_enter(void *data UNUSED)
{
getchar();
}
*/
#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)))