]> granicus.if.org Git - graphviz/commitdiff
gvpr: squash -Wunused-parameter warnings in 'setval'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 16 May 2022 04:34:29 +0000 (21:34 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 24 May 2022 03:23:52 +0000 (20:23 -0700)
These parameters cannot be removed because this function is used as a callback.

lib/gvpr/compile.c

index 3e5517dbacf401b7b5bda8f29129ff228a300da3..e595aa77671c0037b1366e80e8cb847b5b776975 100644 (file)
@@ -1593,6 +1593,9 @@ static int
 setval(Expr_t * pgm, Exnode_t * x, Exid_t * sym, Exref_t * ref,
        void *env, int elt, Extype_t v, Exdisc_t * disc)
 {
+    (void)elt;
+    (void)disc;
+
     Gpr_t *state;
     Agobj_t *objp;
     Agnode_t *np;