ArduinoCore-avr icon indicating copy to clipboard operation
ArduinoCore-avr copied to clipboard

Mark unused parameters with [[gnu::unused]]

Open guilhermgonzaga opened this issue 3 years ago • 2 comments

As of version 1.8.4, when compiling with warning level "all" in the IDE and arduino-cli, there are warnings about unused parameters in the implementation of operator new (cores/arduino/new.cpp).

This PR marks these parameters with [[gnu::unused]].

Fixes https://github.com/arduino/ArduinoCore-avr/issues/508

guilhermgonzaga avatar Feb 15 '22 00:02 guilhermgonzaga