Codechange: Silence warnings about intentionally unused parameters.
This commit is contained in:
@@ -131,7 +131,7 @@ namespace SQConvert {
|
||||
|
||||
private:
|
||||
template <size_t... i>
|
||||
static int SQCall(void *instance, Tretval(*func)(Targs...), [[maybe_unused]] HSQUIRRELVM vm, std::index_sequence<i...>)
|
||||
static int SQCall(void *, Tretval(*func)(Targs...), [[maybe_unused]] HSQUIRRELVM vm, std::index_sequence<i...>)
|
||||
{
|
||||
if constexpr (std::is_void_v<Tretval>) {
|
||||
(*func)(
|
||||
@@ -180,7 +180,7 @@ namespace SQConvert {
|
||||
}
|
||||
|
||||
template <size_t... i>
|
||||
static Tcls *SQConstruct(Tcls *, Tretval(Tcls:: *func)(Targs...), [[maybe_unused]] HSQUIRRELVM vm, std::index_sequence<i...>)
|
||||
static Tcls *SQConstruct(Tcls *, Tretval(Tcls:: *)(Targs...), [[maybe_unused]] HSQUIRRELVM vm, std::index_sequence<i...>)
|
||||
{
|
||||
Tcls *inst = new Tcls(
|
||||
Param<Targs>::Get(vm, 2 + i)...
|
||||
@@ -321,7 +321,7 @@ namespace SQConvert {
|
||||
* here as it has to be in the same scope as DefSQConstructorCallback.
|
||||
*/
|
||||
template <typename Tcls>
|
||||
static SQInteger DefSQDestructorCallback(SQUserPointer p, SQInteger size)
|
||||
static SQInteger DefSQDestructorCallback(SQUserPointer p, SQInteger)
|
||||
{
|
||||
/* Remove the real instance too */
|
||||
if (p != nullptr) ((Tcls *)p)->Release();
|
||||
|
Reference in New Issue
Block a user