]> granicus.if.org Git - graphviz/commitdiff
NullFunction: squash -Wunused-parameter warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 3 Dec 2021 02:12:03 +0000 (18:12 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 5 Dec 2021 01:18:17 +0000 (17:18 -0800)
This parameter cannot be removed because this function is used as a callback in
instances that expect its current calling convention.

lib/rbtree/misc.c

index df711b1ec51f647488c23559ec7c5a2892e2b1fc..e7367c1f6bec069ffca3dcd90988522b31716c70 100644 (file)
@@ -8,4 +8,4 @@
 /*  as a function to RBTreeCreate when no other suitable function has */
 /*  been defined */
 
-void NullFunction(void * junk) { ; }
+void NullFunction(void *junk) { (void)junk; }