summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2019-10-14 14:27:24 -0400
committerBrian Evans <grknight@gentoo.org>2019-10-14 14:27:24 -0400
commitc183824a35fe6a198a712af7ca2d0f0bc7de8eba (patch)
tree64a7ce75f37944eaa2b0ccd79367b3b8abf40866 /20007_all_cmake-debug-werror-8.0.18.patch
parentAdd 20018_all_{mysql,percona-server}-5.7.26-without-clientlibs-tools.patch (diff)
downloadmysql-extras-c183824a35fe6a198a712af7ca2d0f0bc7de8eba.tar.gz
mysql-extras-c183824a35fe6a198a712af7ca2d0f0bc7de8eba.tar.bz2
mysql-extras-c183824a35fe6a198a712af7ca2d0f0bc7de8eba.zip
Respin 2 patches for 8.0.18 - libressl still needs rewrite
Signed-off-by: Brian Evans <grknight@gentoo.org>
Diffstat (limited to '20007_all_cmake-debug-werror-8.0.18.patch')
-rw-r--r--20007_all_cmake-debug-werror-8.0.18.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/20007_all_cmake-debug-werror-8.0.18.patch b/20007_all_cmake-debug-werror-8.0.18.patch
new file mode 100644
index 0000000..c2c1573
--- /dev/null
+++ b/20007_all_cmake-debug-werror-8.0.18.patch
@@ -0,0 +1,15 @@
+--- a/cmake/maintainer.cmake
++++ b/cmake/maintainer.cmake
+@@ -207,12 +207,6 @@ IF(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
+ # -Wzero-as-null-pointer-constant
+ ENDIF()
+
+-# Turn on Werror (warning => error) when using maintainer mode.
+-IF(MYSQL_MAINTAINER_MODE)
+- STRING_APPEND(MY_C_WARNING_FLAGS " -Werror")
+- STRING_APPEND(MY_CXX_WARNING_FLAGS " -Werror")
+-ENDIF()
+-
+ # Set warning flags for gcc/g++/clang/clang++
+ IF(MY_COMPILER_IS_GNU_OR_CLANG)
+ STRING_APPEND(CMAKE_C_FLAGS " ${MY_C_WARNING_FLAGS}")