Fix an unused variable warning with python parameterless callbacks

This commit is contained in:
baldurk
2017-06-08 21:31:21 +01:00
parent 8a59754bf8
commit 055acb05e1
@@ -866,6 +866,10 @@ struct varfunc
currentarg = 0;
// avoid unused parameter errors when calling a parameter-less function
(void)self;
(void)funcname;
using expand_type = int[];
(void)expand_type{0, (push_arg(self, funcname, params), 0)...};
}