From ff3dc29ffd371227a0013ed14176d5c5d6d96b0b Mon Sep 17 00:00:00 2001 From: Ivo van Dongen Date: Mon, 29 May 2017 15:09:34 +0300 Subject: [PATCH] [core] ensure layer::accept works with non-void return values on gcc --- include/mbgl/style/layer.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/mbgl/style/layer.hpp b/include/mbgl/style/layer.hpp index 02153ad09..c6a3c0e73 100644 --- a/include/mbgl/style/layer.hpp +++ b/include/mbgl/style/layer.hpp @@ -6,8 +6,10 @@ #include #include +#include #include #include +#include namespace mbgl { namespace style { @@ -89,6 +91,11 @@ public: case LayerType::FillExtrusion: return std::forward(visitor)(*as()); } + + + // Not reachable, but placate GCC. + assert(false); + throw new std::runtime_error("unknown layer type"); } LayerType getType() const;