aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cores/arduino/new.cpp2
-rw-r--r--cores/arduino/new.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/cores/arduino/new.cpp b/cores/arduino/new.cpp
index 86a1fa5..fc30cf8 100644
--- a/cores/arduino/new.cpp
+++ b/cores/arduino/new.cpp
@@ -26,7 +26,7 @@ void *operator new[](size_t size) {
return malloc(size);
}
-void * operator new(size_t size, void * ptr) {
+void * operator new(size_t size, void * ptr) noexcept {
(void)size;
return ptr;
}
diff --git a/cores/arduino/new.h b/cores/arduino/new.h
index 7690911..763f5cc 100644
--- a/cores/arduino/new.h
+++ b/cores/arduino/new.h
@@ -23,7 +23,7 @@
void * operator new(size_t size);
void * operator new[](size_t size);
-void * operator new(size_t size, void * ptr);
+void * operator new(size_t size, void * ptr) noexcept;
void operator delete(void * ptr);
void operator delete[](void * ptr);