From: Matthew Fernandez Date: Tue, 12 Jul 2022 03:36:08 +0000 (-0700) Subject: circogen edgelist: squash -Wunused-parameter warnings X-Git-Tag: 5.0.1~40^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1bc3af877d4c7397575f1b72c6cca556f423b26e;p=graphviz circogen edgelist: 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/edgelist.c b/lib/circogen/edgelist.c index be0d1e57f..ffd855ed1 100644 --- a/lib/circogen/edgelist.c +++ b/lib/circogen/edgelist.c @@ -14,6 +14,9 @@ static edgelistitem *mkItem(Dt_t * d, edgelistitem * obj, Dtdisc_t * disc) { + (void)d; + (void)disc; + edgelistitem *ap = GNEW(edgelistitem); ap->edge = obj->edge; @@ -22,12 +25,18 @@ static edgelistitem *mkItem(Dt_t * d, edgelistitem * obj, Dtdisc_t * disc) static void freeItem(Dt_t * d, edgelistitem * obj, Dtdisc_t * disc) { + (void)d; + (void)disc; + free(obj); } static int cmpItem(Dt_t * d, Agedge_t ** key1, Agedge_t ** key2, Dtdisc_t * disc) { + (void)d; + (void)disc; + if (*key1 > *key2) return 1; else if (*key1 < *key2)