From 29bb0afef2f496057c3d58ae7ecd26e0dd6fb6f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20B=C3=B6ker?= Date: Wed, 5 Nov 2025 21:49:21 +0100 Subject: [PATCH] Fix a "unused function" build warning --- test/test-spawn.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test-spawn.c b/test/test-spawn.c index dbe484fa9..386f91f94 100644 --- a/test/test-spawn.c +++ b/test/test-spawn.c @@ -234,6 +234,7 @@ static void timer_counter_cb(uv_timer_t* handle) { ++timer_counter; } +#ifdef _WIN32 static void filter_vt(char* t, char with_nl_and_sp) { int wi = 0, len = strlen(t), csi = 0, osc = 0; for (int ri = 0; ri < len; ri++) { @@ -263,6 +264,7 @@ static void filter_vt(char* t, char with_nl_and_sp) { } t[wi] = 0; } +#endif TEST_IMPL(spawn_fails) { int r;