Blame SOURCES/mariadb-debug_build.patch

19da60
Remove the '-Werror' GCC compilation flag, so the debug build compilation won't crash on random warnings.
19da60
19da60
'-Werror' is not your friend:
19da60
https://embeddedartistry.com/blog/2017/5/3/-werror-is-not-your-friend
19da60
19da60
--- mariadb-10.3.17/cmake/maintainer.cmake	2019-07-28 02:18:30.000000000 +0200
19da60
+++ mariadb-10.3.17/cmake/maintainer.cmake_patched	2019-09-03 13:41:49.082088685 +0200
19da60
@@ -33,7 +33,6 @@ SET(MY_WARNING_FLAGS
19da60
   -Wnon-virtual-dtor
19da60
   -Wvla
19da60
   -Wwrite-strings
19da60
-  -Werror
19da60
   )
19da60
 
19da60
 IF(CMAKE_COMPILER_IS_GNUCC AND CMAKE_C_COMPILER_VERSION VERSION_LESS "6.0.0")
19da60
--- mariadb-10.3.17/storage/tokudb/PerconaFT/cmake_modules/TokuSetupCompiler.cmake	2019-07-28 02:18:32.000000000 +0200
19da60
+++ mariadb-10.3.17/storage/tokudb/PerconaFT/cmake_modules/TokuSetupCompiler.cmake_patched	2019-09-03 13:53:51.813324055 +0200
19da60
@@ -163,8 +163,8 @@ if (NOT CMAKE_CXX_COMPILER_ID STREQUAL C
19da60
 endif ()
19da60
 
19da60
 ## always want these in debug builds
19da60
-set(CMAKE_C_FLAGS_DEBUG "-Wall -Werror ${CMAKE_C_FLAGS_DEBUG}")
19da60
-set(CMAKE_CXX_FLAGS_DEBUG "-Wall -Werror ${CMAKE_CXX_FLAGS_DEBUG}")
19da60
+set(CMAKE_C_FLAGS_DEBUG "-Wall ${CMAKE_C_FLAGS_DEBUG}")
19da60
+set(CMAKE_CXX_FLAGS_DEBUG "-Wall ${CMAKE_CXX_FLAGS_DEBUG}")
19da60
 
19da60
 # pick language dialect
19da60
 set(CMAKE_C_FLAGS "-std=c99 ${CMAKE_C_FLAGS}")