]> granicus.if.org Git - graphviz/commitdiff
gvpr cmppair: squash -Wunused-parameter warnings
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 28 Jul 2022 01:58:25 +0000 (18:58 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 2 Aug 2022 04:33:30 +0000 (21:33 -0700)
This function is used as a callback, so cannot easily have these unused
parameters removed.

lib/gvpr/actions.c

index 5b07bde79e917fd645a11ad02457d478271b45ef..1040a9cebfd567e4034b19e86148f50a4c1569cd 100644 (file)
@@ -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;