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_fgetws_static.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_fgetws_static.c') diff --git a/tests/test_fgetws_static.c b/tests/test_fgetws_static.c index a02653f..361d4f4 100644 --- a/tests/test_fgetws_static.c +++ b/tests/test_fgetws_static.c @@ -10,6 +10,6 @@ int main(int argc, char** argv) { fgetws(buffer, 14, NULL); CHK_FAIL_END - putwchar(buffer[0]); + printf("%ls\n", buffer); return ret; } -- cgit v1.3