summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2018-10-24 11:23:40 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2018-10-25 16:23:40 +0300
commita7b3f40f443cfa09f46251eb7d2c1eee8bf762ef (patch)
treea1736652000a184b0a9b01ab6e13ebb4b09804ea
parent55710cbb6799cc3802ef2dbb53d85134739cf83e (diff)
downloadqtlocation-mapboxgl-a7b3f40f443cfa09f46251eb7d2c1eee8bf762ef.tar.gz
[build] GCC 7+ complains about -Wimplicit-fallthrough in utf.cpp
-rw-r--r--platform/default/utf.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/platform/default/utf.cpp b/platform/default/utf.cpp
index f0f9d3e67a..fdcff344b9 100644
--- a/platform/default/utf.cpp
+++ b/platform/default/utf.cpp
@@ -1,7 +1,16 @@
#include <mbgl/util/utf.hpp>
+#if defined(__GNUC__) && __GNUC__ >= 7
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
+#endif // defined(__GNUC__) && __GNUC__ >= 7
+
#include <boost/locale/encoding_utf.hpp>
+#if defined(__GNUC__) && __GNUC__ >= 7
+#pragma GCC diagnostic pop
+#endif // defined(__GNUC__) && __GNUC__ >= 7
+
namespace mbgl {
namespace util {