From 89b628d34b1ef0423df35a72901daa194d7db956 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Tue, 28 Oct 2025 21:33:16 +0100 Subject: Fix the CI on clang Apparently, clang doesn't like the `putwchar` function for no good reason. Replacing it with `printf` fixes a NULL-ptr deref, so let's do that, as we don't really care about the content of the buffer anyway, only that it's not optimized away. --- tests/test_wmemmove_static_write.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_wmemmove_static_write.c') diff --git a/tests/test_wmemmove_static_write.c b/tests/test_wmemmove_static_write.c index 5255e61..7200b95 100644 --- a/tests/test_wmemmove_static_write.c +++ b/tests/test_wmemmove_static_write.c @@ -5,12 +5,12 @@ int main(int argc, char** argv) { wchar_t buffer[2] = {0}; wmemmove(buffer, L"αβγδεζηθικλμνξοπρστυφχψω", 2); - fputws(buffer, stdout); + printf("%ls\n", buffer); CHK_FAIL_START wmemmove(buffer, L"αβγδεζηθικλμνξοπρστυφχψω", 1337); CHK_FAIL_END - fputws(buffer, stdout); + printf("%ls\n", buffer); return ret; } -- cgit v1.3