From: Matthew Fernandez Date: Tue, 12 Jul 2022 03:43:29 +0000 (-0700) Subject: circogen deglist: squash -Wunused-parameter warnings X-Git-Tag: 5.0.1~40^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8c3865d27dbdf76d86385b3d0b27c2c39f80a160;p=graphviz circogen deglist: squash -Wunused-parameter warnings These functions are used in a `Dtdisc_t` structure so need to conform to particular type signatures. --- diff --git a/lib/circogen/deglist.c b/lib/circogen/deglist.c index bf8ac98f9..7ca98b73c 100644 --- a/lib/circogen/deglist.c +++ b/lib/circogen/deglist.c @@ -22,6 +22,9 @@ typedef struct { static degitem *mkItem(Dt_t * d, degitem * obj, Dtdisc_t * disc) { + (void)d; + (void)disc; + degitem *ap = GNEW(degitem); ap->np = NULL; @@ -31,11 +34,17 @@ static degitem *mkItem(Dt_t * d, degitem * obj, Dtdisc_t * disc) static void freeItem(Dt_t * d, degitem * obj, Dtdisc_t * disc) { + (void)d; + (void)disc; + free(obj); } static int cmpDegree(Dt_t * d, int *key1, int *key2, Dtdisc_t * disc) { + (void)d; + (void)disc; + if (*key1 < *key2) return -1; else if (*key1 > *key2)