Commit 8785004c authored by Adam Cozzette's avatar Adam Cozzette

Fix unused parameter warnings in arena_free

The size parameter is only used in cases where the compiler supports
sized delete, so when that's not available we need to specifically cast
it to void to prevent a warning.
parent 7bd11fcb
...@@ -83,6 +83,7 @@ inline void arena_free(void* object, size_t size) { ...@@ -83,6 +83,7 @@ inline void arena_free(void* object, size_t size) {
#if defined(__GXX_DELETE_WITH_SIZE__) || defined(__cpp_sized_deallocation) #if defined(__GXX_DELETE_WITH_SIZE__) || defined(__cpp_sized_deallocation)
::operator delete(object, size); ::operator delete(object, size);
#else #else
(void)size;
::operator delete(object); ::operator delete(object);
#endif #endif
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment