diff --git a/include/arch/arduino-nano/driver/gpio.h b/include/arch/arduino-nano/driver/gpio.h index 1a2fbe079daf97272ad35f539cb74224b35e5899..72099bcf6e6e1584dc4c9d700336206682815ef2 100644 --- a/include/arch/arduino-nano/driver/gpio.h +++ b/include/arch/arduino-nano/driver/gpio.h @@ -39,6 +39,7 @@ class GPIO { inline void setup() { DDRB = _BV(PB5); } +#pragma GCC diagnostic ignored "-Wunused-parameter" inline void led_on(unsigned char id) { PORTB |= _BV(PB5); } @@ -58,6 +59,7 @@ class GPIO { DDRD &= ~_BV(pin - 24); } } +#pragma GCC diagnostic pop inline void input(unsigned char const pin, unsigned char const pull) { if (pin < 8) { } else if (pin < 16) {