Skip to content

Commit 6c2d26f

Browse files
TheMarexPatrick Niklaus
authored andcommitted
Make LUA_SOURCE a global for gcc 4.9
1 parent 84845ff commit 6c2d26f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/updater/updater.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ void checkWeightsConsistency(
143143
}
144144
#endif
145145

146+
static const constexpr std::size_t LUA_SOURCE = 0;
147+
146148
tbb::concurrent_vector<GeometryID>
147149
updateSegmentData(const UpdaterConfig &config,
148150
const extractor::ProfileProperties &profile_properties,
@@ -157,7 +159,6 @@ updateSegmentData(const UpdaterConfig &config,
157159
std::size_t num_counters = config.segment_speed_lookup_paths.size() + 1;
158160
tbb::enumerable_thread_specific<counters_type> segment_speeds_counters(
159161
counters_type(num_counters, 0));
160-
const constexpr auto LUA_SOURCE = 0;
161162

162163
// closure to convert SpeedSource value to weight and count fallbacks to durations
163164
std::atomic<std::uint32_t> fallbacks_to_duration{0};

0 commit comments

Comments
 (0)