diff options
author | Michael Widenius <monty@askmonty.org> | 2012-06-13 19:21:28 +0300 |
---|---|---|
committer | Michael Widenius <monty@askmonty.org> | 2012-06-13 19:21:28 +0300 |
commit | 82942260972de9a7416064c177c3bce3512a984a (patch) | |
tree | 1be11e8e14aa017680e03fa3124a82a2e5c97f1d /cmake | |
parent | 94d68777bbb0ebd42674a4fae77c414050ef57d8 (diff) | |
download | mariadb-git-82942260972de9a7416064c177c3bce3512a984a.tar.gz |
Switched off Maintainer mode by default as it gave wrong compiler warnings (as it added -Wall after some switches was already turned off)
cmake/maintainer.cmake:
Add -DFORCE_INIT_OF_VARS to not get warnings generated by -Wall
configure.cmake:
Don't add -Wall if we already have it. This is to not enable options that are already turned off.
support-files/compiler_warnings.supp:
Removed suppression that is not needed anymore
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/maintainer.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/maintainer.cmake b/cmake/maintainer.cmake index 9c9ab8cca3b..a70226e2b6e 100644 --- a/cmake/maintainer.cmake +++ b/cmake/maintainer.cmake @@ -18,7 +18,7 @@ INCLUDE(CheckCCompilerFlag) # Setup GCC (GNU C compiler) warning options. MACRO(SET_MYSQL_MAINTAINER_GNU_C_OPTIONS) SET(MY_MAINTAINER_WARNINGS - "-Wall -Wextra -Wunused -Wwrite-strings -Wno-strict-aliasing") + "-Wall -Wextra -Wunused -Wwrite-strings -Wno-strict-aliasing -DFORCE_INIT_OF_VARS") CHECK_C_COMPILER_FLAG("-Wno-missing-field-initializers" HAVE_NO_MISSING_FIELD_INITIALIZERS) |