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.
This commit is contained in:
parent
b9ad35733a
commit
33c58818cd
1 changed files with 1 additions and 2 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue