Ignore unused variables

This commit is contained in:
dimitrisudell 2020-11-04 11:51:45 +00:00 committed by The Phantom Derpstorm
parent 30019c4076
commit 71193eadbd
2 changed files with 10 additions and 0 deletions

View File

@ -699,6 +699,10 @@ namespace sol {
}
return success;
#else
(void)L;
(void)index;
(void)handler;
(void)tracking;
return false;
#endif
}
@ -711,6 +715,9 @@ namespace sol {
Function* fx = udata.first;
return fx;
#else
(void)L;
(void)index;
(void)tracking;
static_assert(meta::meta_detail::always_true<Function>::value,
#if SOL_IS_DEFAULT_OFF(SOL_GET_FUNCTION_POINTER_UNSAFE_I_)
"You are attempting to retrieve a function pointer type. "

View File

@ -720,6 +720,9 @@ namespace sol {
else if (old_mode == LUA_GCINC) {
return gc_mode::incremental;
}
#else
(void)minor_multiplier;
(void)major_multiplier;
#endif
return gc_mode::default_value;
}