It seems `swig_type` is never used here (rather than being unused under some conditions), so using `SWIGUNUSEDPARM(swig_type)` is probably better than `SWIGUNUSED swig_type`.