From cd55e25141900b231cc2545bf03d0ca99c6c9640 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Mon, 19 Jan 2026 19:24:54 +0200 Subject: [PATCH] [CMAKE] Disable some GCC 13 builtins These have conflicting prototypes that don't match the Windows ones. Fixes GCC 13 warnings: In file included from C:/ReactOS/reactos/modules/rostests/winetests/ucrtbase/thread.c:21: C:/ReactOS/reactos/sdk/include/ucrt/process.h:281:35: error: conflicting types for built-in function 'execv'; expected 'int(const char *, char * const*)' [-Werror=builtin-declaration-mismatch] 281 | _DCRTIMP intptr_t __cdecl execv( | ^~~~~ C:/ReactOS/reactos/sdk/include/ucrt/process.h:287:35: error: conflicting types for built-in function 'execve'; expected 'int(const char *, char * const*, char * const*)' [-Werror=builtin-declaration-mismatch] 287 | _DCRTIMP intptr_t __cdecl execve( | ^~~~~~ C:/ReactOS/reactos/sdk/include/ucrt/process.h:294:35: error: conflicting types for built-in function 'execvp'; expected 'int(const char *, char * const*)' [-Werror=builtin-declaration-mismatch] 294 | _DCRTIMP intptr_t __cdecl execvp( | ^~~~~~ --- sdk/cmake/gcc.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sdk/cmake/gcc.cmake b/sdk/cmake/gcc.cmake index da017d28a2c..88f7785bd9f 100644 --- a/sdk/cmake/gcc.cmake +++ b/sdk/cmake/gcc.cmake @@ -125,6 +125,9 @@ if(CMAKE_C_COMPILER_ID STREQUAL "GNU") if(CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 13) add_compile_options(-fno-builtin-erf) add_compile_options(-fno-builtin-erff) + add_compile_options(-fno-builtin-execv) + add_compile_options(-fno-builtin-execve) + add_compile_options(-fno-builtin-execvp) endif() elseif(CMAKE_C_COMPILER_ID STREQUAL "Clang")