diff options
author | Daniel Friesel <derf@finalrewind.org> | 2018-10-18 19:02:25 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2018-10-18 19:02:25 +0200 |
commit | 458c89d71c3aa22eb5e83d4e34930a8978c0ef7e (patch) | |
tree | d05641cbcfbb0384ea8866de7fc8e72e2ed675ad /include/arch/arduino-nano/driver | |
parent | e01e0cfd5b5e422cf64a1085bb75742b636f8201 (diff) |
arduino nano: ignore warnings about unused arguments
Diffstat (limited to 'include/arch/arduino-nano/driver')
-rw-r--r-- | include/arch/arduino-nano/driver/gpio.h | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |