From 1bc3af877d4c7397575f1b72c6cca556f423b26e Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Mon, 11 Jul 2022 20:36:08 -0700 Subject: [PATCH] circogen edgelist: squash -Wunused-parameter warnings These functions are used in a `Dtdisc_t` structure so need to conform to particular type signatures. --- lib/circogen/edgelist.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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) -- 2.40.0