From 59cb222aa0ea0cb75079e01a70baaffc8315aec0 Mon Sep 17 00:00:00 2001 From: Jim Parziale Date: Wed, 30 Mar 2022 15:40:16 -0400 Subject: [PATCH] Specify unused parameter --- gpio/gpio.c | 2 +- wiringPi/wiringPi.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gpio/gpio.c b/gpio/gpio.c index 5d8f3d7..5db3a12 100644 --- a/gpio/gpio.c +++ b/gpio/gpio.c @@ -499,7 +499,7 @@ void doExport (int argc, char *argv[]) * to exit the program. Crude but effective. ********************************************************************************* */ -static void wfi (int pin) +static void wfi (UNUSED int pin) { exit (EXIT_SUCCESS); } diff --git a/wiringPi/wiringPi.h b/wiringPi/wiringPi.h index 1bd0925..7b4cd9e 100644 --- a/wiringPi/wiringPi.h +++ b/wiringPi/wiringPi.h @@ -34,6 +34,7 @@ // GCC warning suppressor - don't warn about unused parameters (-Wunused-parameter) #define UNU __attribute__((unused)) +#define UNUSED __attribute__((unused)) // Mask for the bottom 64 pins which belong to the Raspberry Pi // The others are available for the other devices