From 04755a61389f308ef7ea9465bb36e49737125078 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sat, 9 Mar 2024 22:38:48 +0000 Subject: [PATCH] Disable -Wstringop-overflow warning on MinGW --- cmake/CompileFlags.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/CompileFlags.cmake b/cmake/CompileFlags.cmake index 879e30133f..a02a65e162 100644 --- a/cmake/CompileFlags.cmake +++ b/cmake/CompileFlags.cmake @@ -41,6 +41,7 @@ macro(compile_flags) "$<$:-Wa,-mbig-obj>" # Switch to pe-bigobj-x86-64 as x64 Debug builds push pe-x86-64 to the limits (linking errors with ASLR, ...) ) endif() + add_compile_options(-Wno-stringop-overflow) # This warning false-positives on some MinGW versions so just turn it off endif() # Prepare a generator that checks if we are not a debug, and don't have asserts