*/
#define GPIOD_BIT(nr) (1UL << (nr))
+/**
+ * @brief Marks a function argument or variable as potentially unused.
+ */
+#define GPIOD_UNUSED __attribute__((unused))
+
/**
* @}
*
#include <errno.h>
#include <poll.h>
-#define UNUSED __attribute__((unused))
-
int gpiod_simple_get_value(const char *consumer, const char *device,
unsigned int offset, bool active_low)
{
static int basic_event_poll(unsigned int num_lines, const int *fds,
unsigned int *event_offset,
const struct timespec *timeout,
- void *data UNUSED)
+ void *data GPIOD_UNUSED)
{
struct pollfd poll_fds[GPIOD_REQUEST_MAX_LINES];
unsigned int i;