diff options
author | Mike Morris <michael.patrick.morris@gmail.com> | 2015-09-22 17:31:00 -0400 |
---|---|---|
committer | Mike Morris <michael.patrick.morris@gmail.com> | 2015-09-24 12:18:56 -0400 |
commit | 142b59246e13b6801f49d79bd029f57fdd2f7d45 (patch) | |
tree | 9caab32a72deeaeba78483d79f60a5454549cf66 /bin | |
parent | c3fe83f709839b3faf4900eb67f52053234ea363 (diff) | |
download | qtlocation-mapboxgl-142b59246e13b6801f49d79bd029f57fdd2f7d45.tar.gz |
[osx] disable -Wunused-local-typedefs
Fixes OS X builds with Xcode 7, necessitated by
https://svn.boost.org/trac/boost/ticket/11240
Diffstat (limited to 'bin')
-rw-r--r-- | bin/render.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/render.cpp b/bin/render.cpp index 3da0c93586..2248d86035 100644 --- a/bin/render.cpp +++ b/bin/render.cpp @@ -9,13 +9,17 @@ #include <mbgl/storage/default_file_source.hpp> #include <mbgl/storage/sqlite_cache.hpp> +#pragma clang diagnostic push #pragma GCC diagnostic push -#ifndef __clang__ +#ifdef __clang__ +#pragma clang diagnostic ignored "-Wunused-local-typedefs" +#else #pragma GCC diagnostic ignored "-Wunused-local-typedefs" #pragma GCC diagnostic ignored "-Wshadow" #endif #include <boost/program_options.hpp> #pragma GCC diagnostic pop +#pragma clang diagnostic pop namespace po = boost::program_options; |