]> granicus.if.org Git - graphviz/commitdiff
dotgen find_fast_node: squash -Wunused-function warning in release mode
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 10 Jan 2023 15:54:21 +0000 (07:54 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 14 Jan 2023 17:05:18 +0000 (09:05 -0800)
lib/dotgen/fastgr.c

index c641d9de69e9d0713e26cb817f27cd1406e16b07..ba3abfefc37568661551df8f80f4a420a1b0907b 100644 (file)
@@ -8,7 +8,7 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
-
+#include <cgraph/unused.h>
 #include <dotgen/dot.h>
 #include <stdbool.h>
 
@@ -41,9 +41,7 @@ edge_t *find_fast_edge(node_t * u, node_t * v)
     return ffe(u, ND_out(u), v, ND_in(v));
 }
 
-static node_t*
-find_fast_node(graph_t * g, node_t * n)
-{
+static UNUSED node_t *find_fast_node(graph_t *g, node_t *n) {
     node_t *v;
     for (v = GD_nlist(g); v; v = ND_next(v))
        if (v == n)