From 458c89d71c3aa22eb5e83d4e34930a8978c0ef7e Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 18 Oct 2018 19:02:25 +0200 Subject: arduino nano: ignore warnings about unused arguments --- include/arch/arduino-nano/driver/gpio.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/arch/arduino-nano/driver') diff --git a/include/arch/arduino-nano/driver/gpio.h b/include/arch/arduino-nano/driver/gpio.h index 1a2fbe0..72099bc 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) { -- cgit v1.2.3