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:
parent
9c5c8477e2
commit
09f0b8c5ec
1 changed files with 2 additions and 2 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue