Merge pull request #2391 from mapbox/osx-unused-typedef

[osx] disable -Wunused-local-typedef on OS X
This commit is contained in:
Mike Morris
2015-09-24 13:27:08 -04:00
4 changed files with 15 additions and 7 deletions

2
.mason

Submodule .mason updated: d8597d9445...36dc9282d7

View File

@@ -25,7 +25,7 @@ matrix:
sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ]
packages: [ 'gdb', 'clang-3.5', 'libstdc++-4.9-dev', 'libstdc++6', 'libllvm3.4', 'xutils-dev', 'libxxf86vm-dev', 'x11proto-xf86vidmode-dev', 'mesa-utils' ]
- os: osx
osx_image: xcode6.4
osx_image: xcode7
env: FLAVOR=osx BUILDTYPE=Debug
- os: osx
osx_image: xcode7
@@ -77,15 +77,15 @@ matrix:
sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ]
packages: [ 'gdb', 'clang-3.5', 'libstdc++-4.9-dev', 'libstdc++6', 'libllvm3.4', 'xutils-dev', 'libxxf86vm-dev', 'x11proto-xf86vidmode-dev', 'mesa-utils' ]
- os: osx
osx_image: xcode6.4
osx_image: xcode7
compiler: clang
env: FLAVOR=node NODE_VERSION=iojs-v3
- os: osx
osx_image: xcode6.4
osx_image: xcode7
compiler: clang
env: FLAVOR=node NODE_VERSION=0.12
- os: osx
osx_image: xcode6.4
osx_image: xcode7
compiler: clang
env: FLAVOR=node NODE_VERSION=0.10

View File

@@ -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;

View File

@@ -12,13 +12,17 @@
#import <Foundation/Foundation.h>
#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
#include <iostream>