Skip to content

Commit 0ae9df9

Browse files
SiarheiFedartsoumattwigway
authored andcommitted
Add CI job which builds OSRM with gcc 12 (Project-OSRM#6455)
1 parent 46e10ef commit 0ae9df9

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.github/workflows/osrm-backend.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,17 @@ jobs:
212212
CXXCOMPILER: clang++-6.0
213213
ENABLE_CONAN: ON
214214

215+
- name: gcc-12-release
216+
continue-on-error: false
217+
node: 16
218+
runs-on: ubuntu-22.04
219+
BUILD_TOOLS: ON
220+
BUILD_TYPE: Release
221+
CCOMPILER: gcc-12
222+
CXXCOMPILER: g++-12
223+
ENABLE_BENCHMARKS: ON
224+
CXXFLAGS: '-Wno-array-bounds -Wno-uninitialized'
225+
215226
- name: gcc-11-release
216227
continue-on-error: false
217228
node: 16

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Unreleased
22
- Changes from 5.27.1
33
- Build:
4+
- ADDED: Add CI job which builds OSRM with gcc 12. [#6455](https://github.com/Project-OSRM/osrm-backend/pull/6455)
45
- CHANGED: Upgrade to clang-tidy 15. [#6439](https://github.com/Project-OSRM/osrm-backend/pull/6439)
56
- CHANGED: Update actions/cache to v3. [#6420](https://github.com/Project-OSRM/osrm-backend/pull/6420)
67
- REMOVED: Drop support of Node 12 & 14. [#6431](https://github.com/Project-OSRM/osrm-backend/pull/6431)

include/util/indexed_data.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ template <int N, typename T = std::string> struct FixedGroupBlock
216216
std::numeric_limits<std::make_unsigned_t<ValueType>>::max();
217217

218218
auto index = 0;
219-
std::array<ValueType, BLOCK_SIZE> prefix;
219+
std::array<ValueType, BLOCK_SIZE> prefix{};
220220

221221
for (OffsetIterator curr = first, next = std::next(first); curr != last; ++curr, ++next)
222222
{

0 commit comments

Comments
 (0)