]> granicus.if.org Git - graphviz/commitdiff
gvpr: squash -Wunused-parameter warnings in 'keyval'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 16 May 2022 04:39:37 +0000 (21:39 -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 5982958c21a96dd030d65d20a093560d37b3f3f7..47fabe7795fff32953ada5e8fb2860e96af76bdd 100644 (file)
@@ -2206,6 +2206,9 @@ convert(Expr_t * prog, Exnode_t * x, int type,
  */
 static Extype_t keyval(Expr_t * pgm, Extype_t v, int type, Exdisc_t * disc)
 {
+    (void)pgm;
+    (void)disc;
+
     if (type <= T_obj) {
        v.integer = AGID(int2ptr(v.integer));
     }