]> granicus.if.org Git - graphviz/commitdiff
gvpr: squash -Wunused-parameter warnings in 'refval'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 16 May 2022 04:35:27 +0000 (21:35 -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 e595aa77671c0037b1366e80e8cb847b5b776975..4e962dd3c56b71c8455dc1c2114b8666e23f9ce1 100644 (file)
@@ -1793,6 +1793,9 @@ static Extype_t
 refval(Expr_t * pgm, Exnode_t * node, Exid_t * sym, Exref_t * ref,
        char *str, int elt, Exdisc_t * disc)
 {
+    (void)str;
+    (void)elt;
+
     Extype_t v;
     if (sym->lex == CONSTANT) {
        switch (sym->index) {