aboutsummaryrefslogtreecommitdiff
path: root/Lib/tcl
diff options
context:
space:
mode:
authorOlly Betts <olly@survex.com>2016-12-13 09:33:00 +1300
committerOlly Betts <olly@survex.com>2016-12-13 09:33:00 +1300
commit33c58818cd4e50c6d125772f2b23f43839c90d92 (patch)
tree9a051e2e86234c8b475cc44f5fcc39a7211e254f /Lib/tcl
parentb9ad35733a31683de95e105b68823d6cb48c958a (diff)
downloadswig-33c58818cd4e50c6d125772f2b23f43839c90d92.tar.gz
Suppress unused parameter warning properly
Use SWIGUNUSEDPARM rather than assigning a dummy value to the parameter (which then causing warnings about an assignment whose value is never used.
Diffstat (limited to 'Lib/tcl')
-rw-r--r--Lib/tcl/tclrun.swg3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/tcl/tclrun.swg b/Lib/tcl/tclrun.swg
index fd1052a28..3009a77ec 100644
--- a/Lib/tcl/tclrun.swg
+++ b/Lib/tcl/tclrun.swg
@@ -225,7 +225,7 @@ SWIG_Tcl_ConvertPacked(Tcl_Interp *SWIGUNUSEDPARM(interp) , Tcl_Obj *obj, void *
/* Take a pointer and convert it to a string */
SWIGRUNTIME void
-SWIG_Tcl_MakePtr(char *c, void *ptr, swig_type_info *ty, int flags) {
+SWIG_Tcl_MakePtr(char *c, void *ptr, swig_type_info *ty, int SWIGUNUSEDPARM(flags)) {
if (ptr) {
*(c++) = '_';
c = SWIG_PackData(c,&ptr,sizeof(void *));
@@ -233,7 +233,6 @@ SWIG_Tcl_MakePtr(char *c, void *ptr, swig_type_info *ty, int flags) {
} else {
strcpy(c,(char *)"NULL");
}
- flags = 0;
}
/* Create a new pointer object */