From a217ad83a4d17493d749dff40e15bd90bdbbacd2 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Mon, 19 Jan 2026 19:34:29 +0200 Subject: [PATCH] [DDRAW] Disable GCC 13 stringop-overflow warning C:/ReactOS/reactos/dll/directx/wine/ddraw/device.c: In function 'd3d_device3_ComputeSphereVisibility': C:/ReactOS/reactos/dll/directx/wine/ddraw/device.c:4637:5: error: 'compute_sphere_visibility' accessing 192 bytes in a region of size 96 [-Werror=stringop-overflow=] 4637 | compute_sphere_visibility(plane, enabled_planes, TRUE, centers, radii, sphere_count, return_values); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:/ReactOS/reactos/dll/directx/wine/ddraw/device.c:4637:5: note: referencing argument 1 of type 'struct wined3d_vec4[12]' C:/ReactOS/reactos/dll/directx/wine/ddraw/device.c:4589:13: note: in a call to function 'compute_sphere_visibility' 4589 | static void compute_sphere_visibility(struct wined3d_vec4 plane[12], DWORD enabled_planes, BOOL equality, | ^~~~~~~~~~~~~~~~~~~~~~~~~ --- dll/directx/wine/ddraw/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dll/directx/wine/ddraw/CMakeLists.txt b/dll/directx/wine/ddraw/CMakeLists.txt index eb9c828ec6c..a822969d7ce 100644 --- a/dll/directx/wine/ddraw/CMakeLists.txt +++ b/dll/directx/wine/ddraw/CMakeLists.txt @@ -35,6 +35,8 @@ add_library(ddraw MODULE if(MSVC) # Disable C5286: implicit conversion from enum type 'x' to enum type 'y'; target_compile_options(ddraw PRIVATE /wd5286) +else() + target_compile_options(ddraw PRIVATE -Wno-stringop-overflow) endif() set_module_type(ddraw win32dll)