Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[build] GCC 7+ complains about -Wimplicit-fallthrough in utf.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoabinader committed Oct 24, 2018
1 parent c8434b2 commit 91dd5ec
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions platform/default/utf.cpp
Original file line number Diff line number Diff line change
@@ -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 {

Expand Down

0 comments on commit 91dd5ec

Please sign in to comment.