Open
Description
/home/haba/.arduino15/packages/arduino/hardware/avr/1.8.5/cores/arduino/new.cpp: In function 'void* operator new(std::size_t, std::nothrow_t)':
/home/haba/.arduino15/packages/arduino/hardware/avr/1.8.5/cores/arduino/new.cpp:59:60: warning: unused parameter 'tag' [-Wunused-parameter]
void * operator new(std::size_t size, const std::nothrow_t tag) noexcept {
^~~
/home/haba/.arduino15/packages/arduino/hardware/avr/1.8.5/cores/arduino/new.cpp: In function 'void* operator new [](std::size_t, const std::nothrow_t&)':
/home/haba/.arduino15/packages/arduino/hardware/avr/1.8.5/cores/arduino/new.cpp:68:63: warning: unused parameter 'tag' [-Wunused-parameter]
void * operator new[](std::size_t size, const std::nothrow_t& tag) noexcept {
^~~
/home/haba/.arduino15/packages/arduino/hardware/avr/1.8.5/cores/arduino/new.cpp: In function 'void operator delete(void*, const std::nothrow_t&)':
/home/haba/.arduino15/packages/arduino/hardware/avr/1.8.5/cores/arduino/new.cpp:103:55: warning: unused parameter 'tag' [-Wunused-parameter]
void operator delete(void* ptr, const std::nothrow_t& tag) noexcept {
^~~
/home/haba/.arduino15/packages/arduino/hardware/avr/1.8.5/cores/arduino/new.cpp: In function 'void operator delete [](void*, const std::nothrow_t&)':
/home/haba/.arduino15/packages/arduino/hardware/avr/1.8.5/cores/arduino/new.cpp:106:57: warning: unused parameter 'tag' [-Wunused-parameter]
void operator delete[](void* ptr, const std::nothrow_t& tag) noexcept {
Just fix. with a void (tag);
With -Werror it won't compile at all.
Regards,
Harald.
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
- Resolve warning `unused parameter 'tag' [-Werror=unused-parameter]`arduino/ArduinoCore-avr
- Removed compiler warnings (unused variable).arduino/ArduinoCore-avr
- Prevent 'unused parameter' Warningsarduino/ArduinoCore-avr
- Fix weak attributions on operator new and deletearduino/ArduinoCore-avr
- Mark unused parameters with [[gnu::unused]]arduino/ArduinoCore-avr
Activity
matthijskooijman commentedon Oct 26, 2022
There are already a number of PRs for this, I would prefer merging #487 to fix this.
noisymime commentedon Aug 11, 2024
Is there any hope of getting one of the multiple PRs that resolve this annoyance pulled in?
The PRs are very low impact/risk, it really would be nice to have this cleaned up.