diff options
author | Sergei Golubchik <serg@mariadb.org> | 2019-12-13 11:23:04 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2019-12-13 11:24:23 +0100 |
commit | 91c3d99804e4154b87440712f8c6a5fee04c3dd0 (patch) | |
tree | 13faadfee1c3bcdd612c1f39ee8150d9beadbe8a /storage | |
parent | e3d3bbf59829e93e83ab05d831e92a742ffd7e32 (diff) | |
download | mariadb-git-91c3d99804e4154b87440712f8c6a5fee04c3dd0.tar.gz |
tokudb: fix to compile with gcc 9.2.0
Diffstat (limited to 'storage')
-rw-r--r-- | storage/tokudb/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/storage/tokudb/CMakeLists.txt b/storage/tokudb/CMakeLists.txt index 9bff7d4729f..ed802307519 100644 --- a/storage/tokudb/CMakeLists.txt +++ b/storage/tokudb/CMakeLists.txt @@ -30,6 +30,12 @@ IF (HAVE_WVLA) SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wno-vla") ENDIF() +CHECK_C_COMPILER_FLAG("-Wno-address-of-packed-member" HAVE_NO_ADDRESS_PACKED) +IF(HAVE_NO_ADDRESS_PACKED) + SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-address-of-packed-member") + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-address-of-packed-member") +ENDIF() + ############################################ SET(TOKUDB_VERSION "tokudb-7.5.7") SET(TOKUDB_DEB_FILES "usr/lib/mysql/plugin/ha_tokudb.so\netc/mysql/conf.d/tokudb.cnf\nusr/bin/tokuftdump\nusr/share/doc/mariadb-server-5.5/README-TOKUDB\nusr/share/doc/mariadb-server-5.5/README.md" PARENT_SCOPE) |