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.

fix(cli): guard the POSIX-only edit-path note recorder from the Windows build

Martin Vogel7bf366f63b3f
diff --git a/src/cli/config_edit_path.c b/src/cli/config_edit_path.c
index b51c5c2a2..ec26a5534 100644
--- a/src/cli/config_edit_path.c
+++ b/src/cli/config_edit_path.c
@@ -35,11 +35,16 @@ static void edit_path_target_reset(cbm_config_edit_target_t *target) {
target->path[0] = '\0';
}
+#ifndef _WIN32
+/* Only the POSIX symlink-follow resolver records a refusal reason; the Windows
+ * build never follows, so guard this with the same condition as its callers to
+ * avoid -Werror,-Wunused-function (#2110 CI). */
static void edit_path_note(char *reason, size_t reason_size, const char *text) {
if (reason && reason_size > 0U) {
(void)snprintf(reason, reason_size, "%s", text);
}
}
+#endif /* !_WIN32 */
void cbm_config_edit_target_close(cbm_config_edit_target_t *target) {
if (!target) {