]> granicus.if.org Git - graphviz/commitdiff
avoid unused args in ps_image_free
authorCosta Shulyupin <constantine.shulyupin@gmail.com>
Wed, 16 Feb 2022 10:57:08 +0000 (12:57 +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/psusershape.c

index 33d8b515995e8a924ea408f99382bb8f09464ed5..e81840e0d2f60189e9976e35a884c7a7bad28661 100644 (file)
@@ -24,6 +24,8 @@ static Dict_t *EPSF_contents;
 
 static void ps_image_free(Dict_t * dict, usershape_t * p, Dtdisc_t * disc)
 {
+    (void)dict;
+    (void)disc;
     free(p->data);
 }