From: Matthew Fernandez Date: Fri, 22 Jul 2022 01:05:09 +0000 (-0700) Subject: tclpkg tclGdSizeCmd: squash an -Wunused-parameter warning X-Git-Tag: 5.0.1~29^2~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=22ba3022ae19f7b52badec6dd4f908f1d171ae65;p=graphviz tclpkg tclGdSizeCmd: squash an -Wunused-parameter warning This parameter cannot easily be removed because this function is used as a callback and needs to conform to a particular type signature. --- diff --git a/tclpkg/gdtclft/gdtclft.c b/tclpkg/gdtclft/gdtclft.c index b45fb42f8..1e8f01412 100644 --- a/tclpkg/gdtclft/gdtclft.c +++ b/tclpkg/gdtclft/gdtclft.c @@ -1191,6 +1191,8 @@ tclGdGetCmd(Tcl_Interp * interp, int argc, Tcl_Obj * CONST objv[]) static int tclGdSizeCmd(Tcl_Interp * interp, int argc, Tcl_Obj * CONST objv[]) { + (void)argc; + gdImagePtr im; Tcl_Obj *answers[2];