summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2018-02-05 16:03:28 +0100
committerSergei Golubchik <serg@mariadb.org>2018-02-05 16:04:12 +0100
commit7407313f117b31f0ff1da908787af0abf29081ca (patch)
tree2c3a15f03c544bfc6e6642db201e84c2c305df0c /cmake
parent3f42529a6f799a550201551d73014d9d52d3bd94 (diff)
downloadmariadb-git-7407313f117b31f0ff1da908787af0abf29081ca.tar.gz
silence the annoying compiler warning
Diffstat (limited to 'cmake')
-rw-r--r--cmake/maintainer.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/maintainer.cmake b/cmake/maintainer.cmake
index 0541cca86a5..ebd51f403ad 100644
--- a/cmake/maintainer.cmake
+++ b/cmake/maintainer.cmake
@@ -25,6 +25,8 @@ IF(HAVE_C__Wno_format_truncation)
SET(MY_WARNING_FLAGS "${MY_WARNING_FLAGS} -Wno-format-truncation")
ENDIF()
+MY_CHECK_AND_SET_COMPILER_FLAG("-Wno-nonnull-compare")
+
# Common warning flags for GCC and Clang
SET(MY_C_WARNING_FLAGS
"${MY_WARNING_FLAGS} -Wwrite-strings -Wdeclaration-after-statement")