Skip to content

Commit b410611

Browse files
authored
Prevent possible compiler warning
Casting to void is a well known trick for prevening 'unused parameter' warnings.
1 parent c6ce36d commit b410611

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cores/arduino/new.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ void *operator new[](size_t size) {
2727
}
2828

2929
void * operator new(size_t size, void * ptr) {
30+
(void)size;
3031
return ptr;
3132
}
3233

0 commit comments

Comments
 (0)