mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Ignore unused variables
This commit is contained in:
parent
30019c4076
commit
71193eadbd
|
@ -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. "
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user