Browse Source

Specify unused parameter

pull/158/head
Jim Parziale 2 years ago
parent
commit
59cb222aa0
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      gpio/gpio.c
  2. +1
    -0
      wiringPi/wiringPi.h

+ 1
- 1
gpio/gpio.c View File

@@ -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);
}


+ 1
- 0
wiringPi/wiringPi.h View File

@@ -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


Loading…
Cancel
Save