Remove (void)_e. This is a duplicate of what already exists in the typemaps so is not needed. If there are any more exception handlers that issue the unused variable warning, add a '(void)$1;' into the throws typemap.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8048 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2005-12-23 00:28:38 +00:00
commit 09f0b8c5ec

View file

@ -436,9 +436,9 @@ void emit_action(Node *n, Wrapper *f) {
SwigType *et = Getattr(ep,"type");
SwigType *etr = SwigType_typedef_resolve_all(et);
if (SwigType_isreference(etr) || SwigType_ispointer(etr) || SwigType_isarray(etr)) {
Printf(eaction,"catch(%s) {(void)_e;\n", SwigType_str(et, "_e"));
Printf(eaction,"catch(%s) {", SwigType_str(et, "_e"));
} else {
Printf(eaction,"catch(%s) {(void)_e;\n", SwigType_str(et, "&_e"));
Printf(eaction,"catch(%s) {", SwigType_str(et, "&_e"));
}
Printv(eaction,em,"\n",NIL);
Printf(eaction,"}\n");