@@ -56,7 +56,7 @@ void * operator new[](std::size_t size) {
56
56
return operator new (size);
57
57
}
58
58
59
- void * operator new (std::size_t size, const std::nothrow_t tag) noexcept {
59
+ void * operator new (std::size_t size, [[gnu::unused]] const std::nothrow_t tag) noexcept {
60
60
#if defined(NEW_TERMINATES_ON_FAILURE)
61
61
// Cannot call throwing operator new as standard suggests, so call
62
62
// new_helper directly then
@@ -65,7 +65,7 @@ void * operator new(std::size_t size, const std::nothrow_t tag) noexcept {
65
65
return operator new (size);
66
66
#endif
67
67
}
68
- void * operator new [](std::size_t size, const std::nothrow_t & tag) noexcept {
68
+ void * operator new [](std::size_t size, [[gnu::unused]] const std::nothrow_t & tag) noexcept {
69
69
#if defined(NEW_TERMINATES_ON_FAILURE)
70
70
// Cannot call throwing operator new[] as standard suggests, so call
71
71
// malloc directly then
@@ -100,10 +100,10 @@ void operator delete[](void * ptr, std::size_t size) noexcept {
100
100
}
101
101
#endif // __cplusplus >= 201402L
102
102
103
- void operator delete (void * ptr, const std::nothrow_t & tag) noexcept {
103
+ void operator delete (void * ptr, [[gnu::unused]] const std::nothrow_t & tag) noexcept {
104
104
operator delete (ptr);
105
105
}
106
- void operator delete[] (void * ptr, const std::nothrow_t & tag) noexcept {
106
+ void operator delete[] (void * ptr, [[gnu::unused]] const std::nothrow_t & tag) noexcept {
107
107
operator delete[] (ptr);
108
108
}
109
109
0 commit comments