mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-10-15 01:48:12 +03:00
Added gcc 10 build into travis configuration, fixed compilation errors.
This commit is contained in:
30
.travis.yml
30
.travis.yml
@@ -203,6 +203,36 @@ matrix:
|
|||||||
- libboost-filesystem-dev
|
- libboost-filesystem-dev
|
||||||
- libboost-thread-dev
|
- libboost-thread-dev
|
||||||
env: MATRIX_EVAL="CC=gcc-9 CXX=g++-9 TYPE=RelWithDebInfo STRICT=ON UNIT_TESTS=ON ASAN=OFF DBSIM=ON"
|
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
|
- os: linux
|
||||||
dist: trusty
|
dist: trusty
|
||||||
name: "Clang 3.6 Debug"
|
name: "Clang 3.6 Debug"
|
||||||
|
@@ -125,7 +125,7 @@ namespace
|
|||||||
template <class Key> static inline size_t get_key_index(const Key* key)
|
template <class Key> static inline size_t get_key_index(const Key* key)
|
||||||
{
|
{
|
||||||
size_t index(reinterpret_cast<const size_t>(key) - 1);
|
size_t index(reinterpret_cast<const size_t>(key) - 1);
|
||||||
assert(index >= 0 && index < key_vec.size());
|
assert(index < key_vec.size());
|
||||||
return index;
|
return index;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user