]> granicus.if.org Git - graphviz/commitdiff
neatogen overlap.c: squash some -Wunused-parameter warnings
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 18 Jan 2023 16:34:52 +0000 (08:34 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 22 Jan 2023 00:32:26 +0000 (16:32 -0800)
These functions are used as callbacks, so cannot easily have their parameters
removed.

lib/neatogen/overlap.c

index 89728396766768a4d1f6b2254c2945e0e55092cb..242b1ef798a8862655ce1347eb98c369bfcf707e 100644 (file)
@@ -103,6 +103,7 @@ static int comp_scan_points(const void *p, const void *q){
 }
 
 static void NodeDest(void* a) {
+  (void)a;
   /*  free((int*)a);*/
 }
 
@@ -117,9 +118,11 @@ static void NodePrint(const void* a) {
 }
 
 static void InfoPrint(void* a) {
+  (void)a;
 }
 
 static void InfoDest(void *a){
+  (void)a;
 }
 
 static SparseMatrix get_overlap_graph(int dim, int n, double *x, double *width, int check_overlap_only){