summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@montyprogram.com>2013-03-26 11:33:49 +0100
committerVladislav Vaintroub <wlad@montyprogram.com>2013-03-26 11:33:49 +0100
commit1827d9591e24ee469527021771088d842ab18374 (patch)
treebb25f2498ec3b699cdffddf9fc89a208383b4f13 /cmake
parent6b3654f94c5e3d85f1c5510872400ab22402323f (diff)
downloadmariadb-git-1827d9591e24ee469527021771088d842ab18374.tar.gz
MDEV-4245 : Fix maintainer compilation flags.
-Wno-invalid-offsetoff is a C++ warnng, not C. Patch by Pavel Ivanov.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/maintainer.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/maintainer.cmake b/cmake/maintainer.cmake
index d52405e8bcc..874e05b8a43 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 -Wno-invalid-offsetof -DFORCE_INIT_OF_VARS")
+ "-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)
@@ -44,7 +44,7 @@ ENDMACRO()
# Setup G++ (GNU C++ compiler) warning options.
MACRO(SET_MYSQL_MAINTAINER_GNU_CXX_OPTIONS)
SET(MY_MAINTAINER_CXX_WARNINGS
- "${MY_MAINTAINER_WARNINGS} -Wno-unused-parameter -Woverloaded-virtual"
+ "${MY_MAINTAINER_WARNINGS} -Wno-invalid-offsetof -Wno-unused-parameter -Woverloaded-virtual"
CACHE INTERNAL "C++ warning options used in maintainer builds.")
ENDMACRO()