diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2014-09-14 00:11:23 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2014-09-14 22:07:07 +0200 |
commit | 4443993c06ec323088644414e0c064565952bca2 (patch) | |
tree | a7b454a5e40d78733b6a4118b9977b844fbc285f /external | |
parent | be048935c5e9e5d98a349d2fa25e7c2dfbe757dc (diff) |
avoid warnings with boost signals2
Change-Id: I003f4f951d3b4007bc11ac957ac88bf92d87aab3
Diffstat (limited to 'external')
-rw-r--r-- | external/boost/UnpackedTarball_boost.mk | 1 | ||||
-rw-r--r-- | external/boost/boost.signals2.unused.parameters.patch | 20 |
2 files changed, 21 insertions, 0 deletions
diff --git a/external/boost/UnpackedTarball_boost.mk b/external/boost/UnpackedTarball_boost.mk index 237d97da67c0..e57a4bd6f04d 100644 --- a/external/boost/UnpackedTarball_boost.mk +++ b/external/boost/UnpackedTarball_boost.mk @@ -93,6 +93,7 @@ boost_patches += boost.transform_width.patch # Help static analysis tools (see SAL_UNUSED_PARAMETER in sal/types.h): ifeq (GCC,$(COM)) boost_patches += boost_1_44_0-unused-parameters.patch +boost_patches += boost.signals2.unused.parameters.patch endif # Clang warnings: diff --git a/external/boost/boost.signals2.unused.parameters.patch b/external/boost/boost.signals2.unused.parameters.patch new file mode 100644 index 000000000000..342f8300a204 --- /dev/null +++ b/external/boost/boost.signals2.unused.parameters.patch @@ -0,0 +1,20 @@ +--- a/b/boost/boost/signals2/detail/auto_buffer.hpp.sav 2011-12-21 04:05:37.000000000 +0100 ++++ a/b/boost/boost/signals2/detail/auto_buffer.hpp 2014-09-13 23:58:51.221215911 +0200 +@@ -99,7 +99,7 @@ namespace detail + } + + template< class SizeType > +- static bool should_shrink( SizeType size, SizeType capacity ) ++ static bool should_shrink( __attribute__ ((unused)) SizeType size, __attribute__ ((unused)) SizeType capacity ) + { + // + // @remark: when defining a new grow policy, one might +@@ -258,7 +258,7 @@ namespace detail + auto_buffer_destroy( buffer ); + } + +- void destroy_back_n( size_type n, const boost::true_type& ) ++ void destroy_back_n( __attribute__ ((unused)) size_type n, const boost::true_type& ) + { } + + void destroy_back_n( size_type n ) |