From c940fcb0dcc15bb7303ffdcc10de139841703359 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Tue, 10 Jan 2023 07:54:21 -0800 Subject: [PATCH] dotgen find_fast_node: squash -Wunused-function warning in release mode --- lib/dotgen/fastgr.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/dotgen/fastgr.c b/lib/dotgen/fastgr.c index c641d9de6..ba3abfefc 100644 --- a/lib/dotgen/fastgr.c +++ b/lib/dotgen/fastgr.c @@ -8,7 +8,7 @@ * Contributors: Details at https://graphviz.org *************************************************************************/ - +#include #include #include @@ -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) -- 2.40.0