Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

test(repro): fix #471 Windows build (unused-function under -Werror)

Martin Vogel895069ae5c61
diff --git a/tests/repro/repro_issue471.c b/tests/repro/repro_issue471.c
index 94f48f00f..43adb4a49 100644
--- a/tests/repro/repro_issue471.c
+++ b/tests/repro/repro_issue471.c
@@ -110,6 +110,10 @@
*
* Caller must free() the returned pointer.
*/
+/* __attribute__((unused)): on Windows the test body is SKIP_PLATFORM (the
+ * fork/alarm reproduction is POSIX-only), so this builder is unused there and
+ * would trip -Werror=unused-function. */
+static char *build_perl_nested_calls(int depth) __attribute__((unused));
static char *build_perl_nested_calls(int depth) {
/*
* Header: "sub f { return $_[0]; }\nmy $x = " (~32 bytes)