summaryrefslogtreecommitdiff
path: root/boost/boost_1_44_0-gcc4.8.patch
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-03-08 10:36:44 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-03-09 13:03:05 +0100
commit6bea5311d70f518444fe3218cf0b6f49bd93cc34 (patch)
tree0165b0667c7fa98b6a371d290d643a132141f22e /boost/boost_1_44_0-gcc4.8.patch
parentd4c13acaabd37dd9a7026881bc69e0fa64524536 (diff)
Work around GCC 4.8 -Werror=unused-local-typedefs in boost
Change-Id: Ib137c5c5764333d7a878c5e996e6983a277d3856
Diffstat (limited to 'boost/boost_1_44_0-gcc4.8.patch')
-rw-r--r--boost/boost_1_44_0-gcc4.8.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/boost/boost_1_44_0-gcc4.8.patch b/boost/boost_1_44_0-gcc4.8.patch
new file mode 100644
index 000000000000..9fc603eb14f0
--- /dev/null
+++ b/boost/boost_1_44_0-gcc4.8.patch
@@ -0,0 +1,24 @@
+--- misc/boost_1_44_0/boost/bind/arg.hpp
++++ misc/build/boost_1_44_0/boost/bind/arg.hpp
+@@ -35,6 +35,8 @@
+ {
+ // static assert I == is_placeholder<T>::value
+ typedef char T_must_be_placeholder[ I == is_placeholder<T>::value? 1: -1 ];
++ T_must_be_placeholder dummy; (void) dummy;
++ // silence -Werror=unused-local-typedefs (GCC 4.8)
+ }
+ };
+
+--- misc/boost_1_44_0/boost/concept/detail/general.hpp
++++ misc/build/boost_1_44_0/boost/concept/detail/general.hpp
+@@ -68,7 +68,9 @@
+ # define BOOST_CONCEPT_ASSERT_FN( ModelFnPtr ) \
+ typedef ::boost::concepts::detail::instantiate< \
+ &::boost::concepts::requirement_<ModelFnPtr>::failed> \
+- BOOST_PP_CAT(boost_concept_check,__LINE__)
++ BOOST_PP_CAT(boost_concept_check,__LINE__); \
++ BOOST_PP_CAT(boost_concept_check,__LINE__) BOOST_PP_CAT(boost_concept_check_dummy,__LINE__)()
++ // silence -Werror=unused-local-typedefs (GCC 4.8)
+
+ }}
+