mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 16:31:07 +08:00
[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,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user