Fix few unused variable warnings

This commit is contained in:
Michel Zou 2021-03-06 08:20:27 +01:00 committed by William S Fulton
commit ee8d47cec4
6 changed files with 12 additions and 0 deletions

View file

@ -839,6 +839,7 @@ Node *Swig_cparse_template_locate(String *name, Parm *tparms, Symtab *tscope) {
String *nodeType = nodeType(n);
int isclass = 0;
assert(Equal(nodeType, "template"));
(void)nodeType;
isclass = (Equal(Getattr(n, "templatetype"), "class"));
if (!isclass) {
/* If not a templated class we must have a templated function.