Fix GCC -Wunused warning in generated Tcl wrappers

This commit is contained in:
Olly Betts 2022-03-03 19:07:06 +13:00
commit 713438e879

View file

@ -50,6 +50,7 @@ int Tcl_GetBoolFromObj(Tcl_Interp *interp, Tcl_Obj *o, bool *val) {
int SwigString_AsString(Tcl_Interp *interp, Tcl_Obj *o, std::string *val) {
int len;
const char* temp = Tcl_GetStringFromObj(o, &len);
(void)interp;
if (temp == NULL)
return TCL_ERROR;
val->assign(temp, len);