From: Matthew Fernandez Date: Thu, 11 Nov 2021 04:18:16 +0000 (-0800) Subject: free_attr: squash -Wunused-parameter warnings X-Git-Tag: 2.50.0~29^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4cdce64a4e9149da21875915526a22eb2a3a14e9;p=graphviz free_attr: squash -Wunused-parameter warnings --- diff --git a/cmd/tools/gmlparse.y b/cmd/tools/gmlparse.y index 8aa0469d4..0b3e04129 100644 --- a/cmd/tools/gmlparse.y +++ b/cmd/tools/gmlparse.y @@ -406,6 +406,9 @@ alistitem : NAME INTEGER { $$ = mkAttr ($1, 0, INTEGER, $2, 0); } static void free_attr (Dt_t*d, gmlattr* p, Dtdisc_t* ds) { + (void)d; + (void)ds; + if (!p) return; if ((p->kind == LIST) && p->u.lp) dtclose (p->u.lp);