Make LUA_SOURCE a global for gcc 4.9

This commit is contained in:
Patrick Niklaus
2018-02-06 11:06:35 +00:00
committed by Patrick Niklaus
parent 84845ffaa6
commit 6c2d26f9bd
+2 -1
View File
@@ -143,6 +143,8 @@ void checkWeightsConsistency(
}
#endif
static const constexpr std::size_t LUA_SOURCE = 0;
tbb::concurrent_vector<GeometryID>
updateSegmentData(const UpdaterConfig &config,
const extractor::ProfileProperties &profile_properties,
@@ -157,7 +159,6 @@ updateSegmentData(const UpdaterConfig &config,
std::size_t num_counters = config.segment_speed_lookup_paths.size() + 1;
tbb::enumerable_thread_specific<counters_type> segment_speeds_counters(
counters_type(num_counters, 0));
const constexpr auto LUA_SOURCE = 0;
// closure to convert SpeedSource value to weight and count fallbacks to durations
std::atomic<std::uint32_t> fallbacks_to_duration{0};