]> granicus.if.org Git - graphviz/commitdiff
avoid unused args in callbacks freeItem
authorCosta Shulyupin <constantine.shulyupin@gmail.com>
Sun, 20 Feb 2022 05:53:05 +0000 (07:53 +0200)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 1 Mar 2022 15:38:28 +0000 (07:38 -0800)
the function must be compatible with specified signature

lib/common/utils.c

index 3714dfef5beafca94d93bbab51c57d4381bb1189..cd6fe02afe1d72a3fbd5fcc8b9cf6bc37669f273 100644 (file)
@@ -990,6 +990,8 @@ static void *newItem(Dt_t * d, item * objp, Dtdisc_t * disc)
  */
 static void freeItem(Dt_t * d, item * obj, Dtdisc_t * disc)
 {
+    (void)d;
+    (void)disc;
     free(obj);
 }