]> granicus.if.org Git - graphviz/commitdiff
avoid unused args in free_string_entry
authorCosta Shulyupin <constantine.shulyupin@gmail.com>
Wed, 16 Feb 2022 10:50:50 +0000 (12:50 +0200)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 1 Mar 2022 15:38:28 +0000 (07:38 -0800)
the function must have signature, compatible
typedef void (*Dtfree_f)(Dt_t*,void*,Dtdisc_t*);

lib/common/emit.c

index 858942390da0c52223f188b527e3b6b1e0d55903..079ce7f7c1ca2c6ed441bcfd99766c9cff8589c7 100644 (file)
@@ -3522,6 +3522,8 @@ void emit_graph(GVJ_t * job, graph_t * g)
 /* support for stderr_once */
 static void free_string_entry(Dict_t * dict, char *key, Dtdisc_t * disc)
 {
+    (void)dict;
+    (void)disc;
     free(key);
 }