summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2017-07-13 16:22:14 +0200
committerKonstantin Käfer <mail@kkaefer.com>2017-07-13 18:46:39 +0200
commit04fba1e01f61865f5af516cf433ab618df55737c (patch)
treedd2f2b1906dc88d412186d1b82393a6521e30175
parent13d6920661432afcbfbd6c956708964efc366dae (diff)
downloadqtlocation-mapboxgl-04fba1e01f61865f5af516cf433ab618df55737c.tar.gz
[core] add unused default template parameter to keep Xcode 9's Clang from crashing
-rw-r--r--test/algorithm/update_renderables.test.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/algorithm/update_renderables.test.cpp b/test/algorithm/update_renderables.test.cpp
index 26b7cf7f72..d23e1cc1ac 100644
--- a/test/algorithm/update_renderables.test.cpp
+++ b/test/algorithm/update_renderables.test.cpp
@@ -100,12 +100,18 @@ auto createTileDataFn(ActionLog& log, T& dataTiles) {
};
}
+// Unused template argument to fix Clang crash
+// See https://github.com/mapbox/mapbox-gl-native/pull/9501
+template <typename = int>
auto retainTileDataFn(ActionLog& log) {
return [&](auto& tileData, Resource::Necessity necessity) {
log.emplace_back(RetainTileDataAction{ tileData.tileID, necessity });
};
}
+// Unused template argument to fix Clang crash
+// See https://github.com/mapbox/mapbox-gl-native/pull/9501
+template <typename = int>
auto renderTileFn(ActionLog& log) {
return [&](const auto& id, auto& tileData) {
log.emplace_back(RenderTileAction{ id, tileData });