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.
C aiderastclaude-codecode-analysiscode-intelligencecodexcursorcypherdeveloper-toolsgemini-cligraph-visualizationkilocodeknowledge-graphmcpmcp-servermodel-context-protocolopencodesqlitetree-sitterwindsurf
fix(cli): drop the POSIX probe-counter store that Clang 23 rejects
Martin Vogel0ac290e2e243
diff --git a/src/cli/cli.c b/src/cli/cli.cindex 1e1c71f15..7badf1724 100644--- a/src/cli/cli.c+++ b/src/cli/cli.c@@ -1765,14 +1765,25 @@ static bool cbm_json_mcp_command_path_probe_safe(const char *command) {#endif#ifdef CBM_CLI_ENABLE_TEST_API+#ifdef _WIN32static CBM_TLS int *g_mcp_command_path_probe_counter = NULL;+#endifbool cbm_mcp_command_path_probe_safe_for_testing(const char *command, bool windows) {return cbm_json_mcp_command_path_probe_safe_for_platform(command, windows);}void cbm_set_mcp_command_path_probe_counter_for_testing(int *counter) {+#ifdef _WIN32g_mcp_command_path_probe_counter = counter;+#else+ /* The command-path classifier (cbm_json_mcp_probe_command_path) is compiled+ * for Windows only, so on POSIX there is no probe to count. The tests still+ * install a counter on every platform and assert it stays at zero; a pointer+ * stored here but never read is what Clang 23 rejects under -Werror+ * (-Wunused-but-set-global). */+ (void)counter;+#endif}#endif