aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPharap <2933055+Pharap@users.noreply.github.com>2018-08-18 09:27:06 +0100
committerGitHub <noreply@github.com>2018-08-18 09:27:06 +0100
commitb410611ffcdcb822d69c828f01dd6216c1ef3348 (patch)
tree03a2265bc42338d884c89a95059acb76bfc8519a
parentc6ce36d56cd5e874e60c3ba8a36cc77c307df718 (diff)
Prevent possible compiler warning
Casting to void is a well known trick for prevening 'unused parameter' warnings.
-rw-r--r--cores/arduino/new.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/cores/arduino/new.cpp b/cores/arduino/new.cpp
index bfb219d..86a1fa5 100644
--- a/cores/arduino/new.cpp
+++ b/cores/arduino/new.cpp
@@ -27,6 +27,7 @@ void *operator new[](size_t size) {
}
void * operator new(size_t size, void * ptr) {
+ (void)size;
return ptr;
}