aboutsummaryrefslogtreecommitdiff
path: root/src/universe.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/universe.h')
-rw-r--r--src/universe.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/universe.h b/src/universe.h
index 3ee0868..6a65888 100644
--- a/src/universe.h
+++ b/src/universe.h
@@ -38,7 +38,7 @@ class AllocatorDefinition
38 static void* operator new(size_t size_, lua_State* L) noexcept { return lua_newuserdatauv(L, size_, 0); } 38 static void* operator new(size_t size_, lua_State* L) noexcept { return lua_newuserdatauv(L, size_, 0); }
39 // always embedded somewhere else or "in-place constructed" as a full userdata 39 // always embedded somewhere else or "in-place constructed" as a full userdata
40 // can't actually delete the operator because the compiler generates stack unwinding code that could call it in case of exception 40 // can't actually delete the operator because the compiler generates stack unwinding code that could call it in case of exception
41 static void operator delete(void* p_, lua_State* L) { ASSERT_L(!"should never be called") }; 41 static void operator delete([[maybe_unused]] void* p_, lua_State* L) { ASSERT_L(!"should never be called") };
42 42
43 AllocatorDefinition(lua_Alloc allocF_, void* allocUD_) noexcept 43 AllocatorDefinition(lua_Alloc allocF_, void* allocUD_) noexcept
44 : m_allocF{ allocF_ } 44 : m_allocF{ allocF_ }