@@ -46,14 +46,17 @@ void * operator new[](std::size_t size) {
4646
4747#if __cplusplus >= 201703L
4848void * operator new (std::size_t count, std::align_val_t al) {
49+ (void )al; // unused
4950 return operator new (count);
5051}
5152
5253void * operator new [](std::size_t count, std::align_val_t al) {
54+ (void )al; // unused
5355 return operator new (count);
5456}
5557
5658void * operator new (std::size_t size, std::align_val_t al, const std::nothrow_t tag) noexcept {
59+ (void )al; (void )tag; // unused
5760#if defined(NEW_TERMINATES_ON_FAILURE)
5861 // Cannot call throwing operator new as standard suggests, so call
5962 // new_helper directly then
@@ -64,6 +67,7 @@ void * operator new(std::size_t size, std::align_val_t al, const std::nothrow_t
6467}
6568
6669void * operator new [](std::size_t size, std::align_val_t al, const std::nothrow_t & tag) noexcept {
70+ (void )al; (void )tag; // unused
6771#if defined(NEW_TERMINATES_ON_FAILURE)
6872 // Cannot call throwing operator new[] as standard suggests, so call
6973 // malloc directly then
@@ -75,6 +79,7 @@ void * operator new[](std::size_t size, std::align_val_t al, const std::nothrow_
7579#endif
7680
7781void * operator new (std::size_t size, const std::nothrow_t tag) noexcept {
82+ (void )tag; // unused
7883#if defined(NEW_TERMINATES_ON_FAILURE)
7984 // Cannot call throwing operator new as standard suggests, so call
8085 // new_helper directly then
@@ -84,6 +89,7 @@ void * operator new(std::size_t size, const std::nothrow_t tag) noexcept {
8489#endif
8590}
8691void * operator new [](std::size_t size, const std::nothrow_t & tag) noexcept {
92+ (void )tag; // unused
8793#if defined(NEW_TERMINATES_ON_FAILURE)
8894 // Cannot call throwing operator new[] as standard suggests, so call
8995 // malloc directly then
@@ -111,17 +117,21 @@ void operator delete[](void * ptr) noexcept {
111117
112118#if __cplusplus >= 201402L
113119void operator delete (void * ptr, std::size_t size) noexcept {
120+ (void )size; // unused
114121 operator delete (ptr);
115122}
116123void operator delete[] (void * ptr, std::size_t size) noexcept {
124+ (void )size; // unused
117125 operator delete[] (ptr);
118126}
119127#endif // __cplusplus >= 201402L
120128
121129void operator delete (void * ptr, const std::nothrow_t & tag) noexcept {
130+ (void )tag; // unused
122131 operator delete (ptr);
123132}
124133void operator delete[] (void * ptr, const std::nothrow_t & tag) noexcept {
134+ (void )tag; // unused
125135 operator delete[] (ptr);
126136}
127137
0 commit comments