1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-06-30 18:01:53 +03:00

Added gcc 10 build into travis configuration, fixed compilation errors.

This commit is contained in:
Teemu Ollakka
2020-04-09 12:08:15 +03:00
parent ae4e58ba03
commit 96cd92164e
2 changed files with 31 additions and 1 deletions

View File

@ -203,6 +203,36 @@ matrix:
- libboost-filesystem-dev
- libboost-thread-dev
env: MATRIX_EVAL="CC=gcc-9 CXX=g++-9 TYPE=RelWithDebInfo STRICT=ON UNIT_TESTS=ON ASAN=OFF DBSIM=ON"
- os: linux
dist: bionic
name: "GCC 10 Debug"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-10
- cmake
- libboost-test-dev
- libboost-program-options-dev
- libboost-filesystem-dev
- libboost-thread-dev
env: MATRIX_EVAL="CC=gcc-10 CXX=g++-10 TYPE=Debug STRICT=ON UNIT_TESTS=ON ASAN=OFF DBSIM=ON"
- os: linux
dist: bionic
name: "GCC 10 RelWithDebInfo"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-10
- cmake
- libboost-test-dev
- libboost-program-options-dev
- libboost-filesystem-dev
- libboost-thread-dev
env: MATRIX_EVAL="CC=gcc-10 CXX=g++-10 TYPE=RelWithDebInfo STRICT=ON UNIT_TESTS=ON ASAN=OFF DBSIM=ON"
- os: linux
dist: trusty
name: "Clang 3.6 Debug"

View File

@ -125,7 +125,7 @@ namespace
template <class Key> static inline size_t get_key_index(const Key* key)
{
size_t index(reinterpret_cast<const size_t>(key) - 1);
assert(index >= 0 && index < key_vec.size());
assert(index < key_vec.size());
return index;
}