From a52d8448e848da1753546b8400517dd4b66e60a0 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 2 Oct 2025 17:15:22 +0000 Subject: [PATCH] graph: Cast arguments to void* to deal with API breakage Signed-off-by: Michael Tremer --- src/daemon/graph.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/daemon/graph.c b/src/daemon/graph.c index ab4eea6..d227d1e 100644 --- a/src/daemon/graph.c +++ b/src/daemon/graph.c @@ -219,7 +219,9 @@ int collecty_graph_render(collecty_graph* self, goto ERROR; // Render the graph - r = rrd_graph(collecty_args_argc(args), (char**)collecty_args_argv(args), + // We are casting the argument array to (void*) to silence a compiler + // warning since rrdtool >= 1.9 has constified their input arguments. + r = rrd_graph(collecty_args_argc(args), (void*)collecty_args_argv(args), &data, &w, &h, f, &ymin, &ymax); if (r < 0) { ERROR(self->ctx, "Failed to generate the graph: %s\n", rrd_get_error()); -- 2.47.3