]> granicus.if.org Git - graphviz/commitdiff
gvpr: squash -Wunused-parameter warnings in 'matchval'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 16 May 2022 04:40:39 +0000 (21:40 -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 47fabe7795fff32953ada5e8fb2860e96af76bdd..24083bae46b1791d68eb32ffcb9fac6e3fcbe712 100644 (file)
@@ -2222,6 +2222,12 @@ static int
 matchval(Expr_t * pgm, Exnode_t * xstr, const char *str, Exnode_t * xpat,
         const char *pat, void *env, Exdisc_t * disc)
 {
+    (void)pgm;
+    (void)xstr;
+    (void)xpat;
+    (void)env;
+    (void)disc;
+
     return strgrpmatch(str, pat, NULL, 0,
                       STR_MAXIMAL | STR_LEFT | STR_RIGHT);
 }