From 4667e9470aafb7fa8d18f685e7c86ceff4d22d6f Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Sun, 24 May 2015 13:48:04 -0700 Subject: [PATCH] more portable workaround for gil c++11 bug - closes #2859 --- SConstruct | 5 ----- deps/agg/src/agg_pixfmt_rgba.cpp | 1 + deps/boost/gil/extension/toolbox/hsl.hpp | 5 +++++ deps/boost/gil/extension/toolbox/hsv.hpp | 5 +++++ include/mapnik/image_filter.hpp | 1 + 5 files changed, 12 insertions(+), 5 deletions(-) diff --git a/SConstruct b/SConstruct index 8f80a1ca0..8630b4f11 100644 --- a/SConstruct +++ b/SConstruct @@ -1734,11 +1734,6 @@ if not preconfigured: # c++11 support / https://github.com/mapnik/mapnik/issues/1683 # - upgrade to PHOENIX_V3 since that is needed for c++11 compile env.Append(CPPDEFINES = '-DBOOST_SPIRIT_USE_PHOENIX_V3=1') - if 'clang++' in env['CXX']: - # - workaround boost gil channel_algorithm.hpp narrowing error - # TODO - remove when building against >= 1.55 - # https://github.com/mapnik/mapnik/issues/1970 - env.Append(CXXFLAGS = '-Wno-c++11-narrowing') # Enable logging in debug mode (always) and release mode (when specified) if env['DEFAULT_LOG_SEVERITY']: diff --git a/deps/agg/src/agg_pixfmt_rgba.cpp b/deps/agg/src/agg_pixfmt_rgba.cpp index f07c54032..05b8734d5 100644 --- a/deps/agg/src/agg_pixfmt_rgba.cpp +++ b/deps/agg/src/agg_pixfmt_rgba.cpp @@ -4,6 +4,7 @@ // boost #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wc++11-narrowing" #pragma GCC diagnostic ignored "-Wunused-local-typedef" #include #include diff --git a/deps/boost/gil/extension/toolbox/hsl.hpp b/deps/boost/gil/extension/toolbox/hsl.hpp index ecbf89749..c77dd7287 100644 --- a/deps/boost/gil/extension/toolbox/hsl.hpp +++ b/deps/boost/gil/extension/toolbox/hsl.hpp @@ -14,7 +14,12 @@ /// \author Christian Henning \n //////////////////////////////////////////////////////////////////////////////////////// +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wc++11-narrowing" +#pragma GCC diagnostic ignored "-Wunused-local-typedef" #include +#pragma GCC diagnostic pop namespace boost { namespace gil { diff --git a/deps/boost/gil/extension/toolbox/hsv.hpp b/deps/boost/gil/extension/toolbox/hsv.hpp index ba12cbd14..5195cc248 100644 --- a/deps/boost/gil/extension/toolbox/hsv.hpp +++ b/deps/boost/gil/extension/toolbox/hsv.hpp @@ -14,7 +14,12 @@ /// \author Christian Henning \n //////////////////////////////////////////////////////////////////////////////////////// +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wc++11-narrowing" +#pragma GCC diagnostic ignored "-Wunused-local-typedef" #include +#pragma GCC diagnostic pop namespace boost { namespace gil { diff --git a/include/mapnik/image_filter.hpp b/include/mapnik/image_filter.hpp index ed7cb567b..eef8141b2 100644 --- a/include/mapnik/image_filter.hpp +++ b/include/mapnik/image_filter.hpp @@ -31,6 +31,7 @@ // boost GIL #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wc++11-narrowing" #pragma GCC diagnostic ignored "-Wunused-local-typedef" #include #pragma GCC diagnostic pop