File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ void * operator new[](std::size_t size) {
57
57
}
58
58
59
59
void * operator new (std::size_t size, const std::nothrow_t tag) noexcept {
60
+ (void )tag; // unused
60
61
#if defined(NEW_TERMINATES_ON_FAILURE)
61
62
// Cannot call throwing operator new as standard suggests, so call
62
63
// new_helper directly then
@@ -66,6 +67,7 @@ void * operator new(std::size_t size, const std::nothrow_t tag) noexcept {
66
67
#endif
67
68
}
68
69
void * operator new [](std::size_t size, const std::nothrow_t & tag) noexcept {
70
+ (void )tag; // unused
69
71
#if defined(NEW_TERMINATES_ON_FAILURE)
70
72
// Cannot call throwing operator new[] as standard suggests, so call
71
73
// malloc directly then
@@ -101,9 +103,11 @@ void operator delete[](void * ptr, std::size_t size) noexcept {
101
103
#endif // __cplusplus >= 201402L
102
104
103
105
void operator delete (void * ptr, const std::nothrow_t & tag) noexcept {
106
+ (void )tag; // unused
104
107
operator delete (ptr);
105
108
}
106
109
void operator delete[] (void * ptr, const std::nothrow_t & tag) noexcept {
110
+ (void )tag; // unused
107
111
operator delete[] (ptr);
108
112
}
109
113
You can’t perform that action at this time.
0 commit comments