From: Matthew Fernandez Date: Thu, 28 Jul 2022 01:58:25 +0000 (-0700) Subject: gvpr cmppair: squash -Wunused-parameter warnings X-Git-Tag: 5.0.1~25^2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e8116c013c18338c0735489c6c728c92c6b97c7;p=graphviz gvpr cmppair: squash -Wunused-parameter warnings This function is used as a callback, so cannot easily have these unused parameters removed. --- diff --git a/lib/gvpr/actions.c b/lib/gvpr/actions.c index 5b07bde79..1040a9ceb 100644 --- a/lib/gvpr/actions.c +++ b/lib/gvpr/actions.c @@ -275,6 +275,9 @@ static Agraph_t *cloneSubg(Agraph_t * tgt, Agraph_t * g, Dt_t* emap) static int cmppair(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) return -1; else return 0;