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 16:23:19 +0200 |
commit | d03fd0dce2efc101021b4cf351945680afaa4349 (patch) | |
tree | f9156de1d70df6e0162201326f5adabf85e30e57 /src | |
parent | 3f1c6dabf105f2463cb4955da4754228b02fac92 (diff) | |
download | qtlocation-mapboxgl-d03fd0dce2efc101021b4cf351945680afaa4349.tar.gz |
[build] Don't use maybe-uninitialized and misleading-indentation in Clang, since they're not implemented there
Diffstat (limited to 'src')
-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> |