summaryrefslogtreecommitdiff
path: root/storage/rocksdb
diff options
context:
space:
mode:
authorSergei Petrunia <sergey@mariadb.com>2020-09-03 15:26:55 +0000
committerSergei Petrunia <sergey@mariadb.com>2020-09-03 15:26:55 +0000
commitd63fcbc2f07bb51ea4a5424361deef319da9bd39 (patch)
treebf3b00ee274c1ce63ff3f58a22a23ba017d09c86 /storage/rocksdb
parent2a93e632b1676b6df3dde150888d6428a57f8399 (diff)
downloadmariadb-git-d63fcbc2f07bb51ea4a5424361deef319da9bd39.tar.gz
MDEV-23661: RocksDB produces "missing initializer for member" warnings
Add -Wno-missing-field-initializers for MyRocks and gcc version below 5.0
Diffstat (limited to 'storage/rocksdb')
-rw-r--r--storage/rocksdb/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/storage/rocksdb/CMakeLists.txt b/storage/rocksdb/CMakeLists.txt
index 506dead7a6e..a82794e9f07 100644
--- a/storage/rocksdb/CMakeLists.txt
+++ b/storage/rocksdb/CMakeLists.txt
@@ -54,6 +54,9 @@ IF(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
SKIP_ROCKSDB_PLUGIN("${OLD_COMPILER_MSG}")
ENDIF()
SET(CXX11_FLAGS "-std=c++11")
+ IF (GCC_VERSION VERSION_LESS 5.0)
+ SET(CXX11_FLAGS "-Wno-missing-field-initializers")
+ ENDIF()
ELSEIF (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
IF ((CMAKE_CXX_COMPILER_VERSION AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.3) OR
(CLANG_VERSION_STRING AND CLANG_VERSION_STRING VERSION_LESS 3.3))