Fix gcc -O0 incompatible allocator warning

This commit is contained in:
Wilson Snyder 2023-10-22 09:51:02 -04:00
parent bcbe5059a9
commit b83b9974ee
1 changed files with 1 additions and 0 deletions

View File

@ -103,6 +103,7 @@ public:
}
#if defined(VL_DEBUG) && !defined(VL_LEAK_CHECKS)
// For testing, leak so above destructor 1 assignments work
void* operator new(size_t size) { return std::malloc(size); }
void operator delete(void* objp, size_t size) {}
#endif
void fallbackp(VSymEnt* entp) { m_fallbackp = entp; }