]> granicus.if.org Git - graphviz/commitdiff
avoid unused args in callbacks newItem
authorCosta Shulyupin <constantine.shulyupin@gmail.com>
Wed, 16 Feb 2022 11:04:29 +0000 (13:04 +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 f2b2f502a7294ec1548058d66cc154f6e5c1dbc3..3714dfef5beafca94d93bbab51c57d4381bb1189 100644 (file)
@@ -974,6 +974,7 @@ static int cmpItem(Dt_t * d, void *p1[], void *p2[], Dtdisc_t * disc)
  */
 static void *newItem(Dt_t * d, item * objp, Dtdisc_t * disc)
 {
+    (void)d;
     item *newp = NEW(item);
 
     (void)disc;