From 68dcd87d38fbe90c9fc16a8b93509f170a3d2ae6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Thu, 15 Oct 2020 11:36:01 +0200 Subject: [PATCH] [WINED3D] Fix build with lower optimization levels --- dll/directx/wine/wined3d/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dll/directx/wine/wined3d/CMakeLists.txt b/dll/directx/wine/wined3d/CMakeLists.txt index e00033ea397..ea4f46059a6 100644 --- a/dll/directx/wine/wined3d/CMakeLists.txt +++ b/dll/directx/wine/wined3d/CMakeLists.txt @@ -52,3 +52,7 @@ target_link_libraries(d3dwine wine) add_importlibs(d3dwine user32 opengl32 gdi32 advapi32 msvcrt kernel32 ntdll) add_pch(d3dwine precomp.h SOURCE) add_cd_file(TARGET d3dwine DESTINATION reactos/system32 FOR all) + +if (NOT MSVC) + target_compile_options(d3dwine PRIVATE -Wno-format-overflow) +endif()