From 4fb955c80bff1f85bdf2272accdda815ce3ee402 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Wed, 20 Nov 2024 05:35:50 +0100 Subject: [PATCH] cmake: fix sdlcpu.cmake for C89 compilers --- cmake/sdlcpu.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/sdlcpu.cmake b/cmake/sdlcpu.cmake index d63a57f9f..0c2ca1f5e 100644 --- a/cmake/sdlcpu.cmake +++ b/cmake/sdlcpu.cmake @@ -61,8 +61,8 @@ const char *arch_${known_arch} = \"INFO<${known_arch}=\" ARCH_${known_arch} \">\ set(src_arch_detect "${src_vars} int main(int argc, char *argv[]) { - (void)argv; int result = 0; + (void)argv; ${src_main} return result; }")