ignore boost warnings with gcc as well

This commit is contained in:
Konstantin Käfer
2014-07-01 05:15:26 -07:00
parent 475f0481b3
commit ce44d8255d
2 changed files with 12 additions and 4 deletions

View File

@@ -5,7 +5,12 @@
// g++/libstdc++ is missing c++11 codecvt support
#ifdef __linux__
#pragma GCC diagnostic push
#ifndef __clang__
#pragma GCC diagnostic ignored "-Wunused-local-typedefs"
#endif
#include <boost/locale.hpp>
#pragma GCC diagnostic pop
#else
#include <codecvt>
#include <locale>

View File

@@ -2,14 +2,17 @@
#include <llmr/text/rotation_range.hpp>
#include <llmr/util/math.hpp>
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wdeprecated-register"
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
#ifndef __clang__
#pragma GCC diagnostic ignored "-Wunused-local-typedefs"
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/point.hpp>
#include <boost/geometry/geometries/box.hpp>
#include <boost/geometry/index/rtree.hpp>
#pragma clang diagnostic pop
#pragma GCC diagnostic pop
namespace llmr {
namespace bg = boost::geometry;