From 8261b990c0ab0ffe9480a3a0805bf0a8022b1142 Mon Sep 17 00:00:00 2001 From: David Wells Date: Fri, 21 Oct 2016 15:28:19 -0400 Subject: [PATCH] Fix some boost warnings by applying old patches. This commit redoes two old commits: * 0fd99736f58, which silences a (bogus) warning in GCC 4.8 and GCC 4.9, and * 56b062ca039, which silences anothor bogus warning in GCC versions prior to 4.8. --- .../include/boost/archive/iterators/istream_iterator.hpp | 6 ++++-- .../include/boost/signals2/detail/variadic_slot_invoker.hpp | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bundled/boost-1.62.0/include/boost/archive/iterators/istream_iterator.hpp b/bundled/boost-1.62.0/include/boost/archive/iterators/istream_iterator.hpp index 9a1d555c10..797602c974 100644 --- a/bundled/boost-1.62.0/include/boost/archive/iterators/istream_iterator.hpp +++ b/bundled/boost-1.62.0/include/boost/archive/iterators/istream_iterator.hpp @@ -69,13 +69,15 @@ class istream_iterator : Elem m_current_value; public: istream_iterator(istream_type & is) : - m_istream(& is) + m_istream(& is), + m_current_value() { //increment(); } istream_iterator() : - m_istream(NULL) + m_istream(NULL), + m_current_value() {} istream_iterator(const istream_iterator & rhs) : diff --git a/bundled/boost-1.62.0/include/boost/signals2/detail/variadic_slot_invoker.hpp b/bundled/boost-1.62.0/include/boost/signals2/detail/variadic_slot_invoker.hpp index 59739b3f36..8dba6c7c28 100644 --- a/bundled/boost-1.62.0/include/boost/signals2/detail/variadic_slot_invoker.hpp +++ b/bundled/boost-1.62.0/include/boost/signals2/detail/variadic_slot_invoker.hpp @@ -102,6 +102,7 @@ namespace boost typename boost::enable_if >::type * = 0 ) const { + (void)args; // Silence a faulty -Wunused-but-set-parameter diagnostic emitted by gcc up to 4.8* func(BOOST_SIGNALS2_GET(args)...); return R(); } -- 2.39.5