diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2017-07-10 13:48:43 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2017-07-11 11:33:21 +0200 |
commit | dc856ca4c323f656440d4de02da982dd24da8bce (patch) | |
tree | e74c1f457c715e788f9558691f198f77ec84b94d | |
parent | 90c61c195622c8b3106ed4a3d5c6080dfa8a65e0 (diff) | |
download | qtlocation-mapboxgl-dc856ca4c323f656440d4de02da982dd24da8bce.tar.gz |
[build] Don't use maybe-uninitialized and misleading-indentation in Clang, since they're not implemented there
-rw-r--r-- | src/mbgl/annotation/symbol_annotation_impl.hpp | 2 | ||||
-rw-r--r-- | src/mbgl/text/collision_tile.hpp | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/mbgl/annotation/symbol_annotation_impl.hpp b/src/mbgl/annotation/symbol_annotation_impl.hpp index 9270acb857..e41ff85f33 100644 --- a/src/mbgl/annotation/symbol_annotation_impl.hpp +++ b/src/mbgl/annotation/symbol_annotation_impl.hpp @@ -17,8 +17,10 @@ #pragma GCC diagnostic ignored "-Wdeprecated-register" #pragma GCC diagnostic ignored "-Wshorten-64-to-32" #pragma GCC diagnostic ignored "-Wunused-local-typedefs" +#ifndef __clang__ #pragma GCC diagnostic ignored "-Wmaybe-uninitialized" #pragma GCC diagnostic ignored "-Wmisleading-indentation" +#endif #include <boost/geometry.hpp> #include <boost/geometry/geometries/point.hpp> #include <boost/geometry/geometries/box.hpp> diff --git a/src/mbgl/text/collision_tile.hpp b/src/mbgl/text/collision_tile.hpp index bdacbb7437..59fd1a3927 100644 --- a/src/mbgl/text/collision_tile.hpp +++ b/src/mbgl/text/collision_tile.hpp @@ -16,8 +16,10 @@ #pragma GCC diagnostic ignored "-Wdeprecated-register" #pragma GCC diagnostic ignored "-Wshorten-64-to-32" #pragma GCC diagnostic ignored "-Wunused-local-typedefs" +#ifndef __clang__ #pragma GCC diagnostic ignored "-Wmaybe-uninitialized" #pragma GCC diagnostic ignored "-Wmisleading-indentation" +#endif #include <boost/geometry.hpp> #include <boost/geometry/geometries/point.hpp> #include <boost/geometry/geometries/box.hpp> |