1
0
forked from boostorg/mp11

Suppress MSVC level 4 warnings

This commit is contained in:
Peter Dimov
2017-12-12 00:34:17 +02:00
parent c273159c94
commit 26e2302f3b
8 changed files with 45 additions and 5 deletions

View File

@@ -16,6 +16,11 @@
#include <type_traits> #include <type_traits>
#include <cstddef> #include <cstddef>
#if defined(BOOST_MSVC)
# pragma warning( push )
# pragma warning( disable: 4100 ) // unreferenced formal parameter 'tp'
#endif
namespace boost namespace boost
{ {
namespace mp11 namespace mp11
@@ -85,4 +90,8 @@ template<class Tp, class F> BOOST_CONSTEXPR F tuple_for_each( Tp && tp, F && f )
} // namespace mp11 } // namespace mp11
} // namespace boost } // namespace boost
#if defined(BOOST_MSVC)
# pragma warning( pop )
#endif
#endif // #ifndef BOOST_TUPLE_HPP_INCLUDED #endif // #ifndef BOOST_TUPLE_HPP_INCLUDED

View File

@@ -7,6 +7,10 @@
// http://www.boost.org/LICENSE_1_0.txt // http://www.boost.org/LICENSE_1_0.txt
#if defined(_MSC_VER)
#pragma warning( disable: 4244 ) // 'initializing': conversion from 'int' to 'char', possible loss of data
#endif
#include <boost/mp11/tuple.hpp> #include <boost/mp11/tuple.hpp>
#include <boost/core/lightweight_test.hpp> #include <boost/core/lightweight_test.hpp>
#include <boost/config.hpp> #include <boost/config.hpp>

View File

@@ -1,11 +1,16 @@
// Copyright 2015 Peter Dimov. // Copyright 2015 Peter Dimov.
// //
// Distributed under the Boost Software License, Version 1.0. // Distributed under the Boost Software License, Version 1.0.
// //
// See accompanying file LICENSE_1_0.txt or copy at // See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt // http://www.boost.org/LICENSE_1_0.txt
#if defined(_MSC_VER)
#pragma warning( disable: 4244 ) // 'initializing': conversion from 'int' to 'char', possible loss of data
#endif
#include <boost/mp11/tuple.hpp> #include <boost/mp11/tuple.hpp>
#include <boost/config.hpp> #include <boost/config.hpp>

View File

@@ -1,5 +1,5 @@
// Copyright 2015, 2017 Peter Dimov. // Copyright 2015, 2017 Peter Dimov.
// //
// Distributed under the Boost Software License, Version 1.0. // Distributed under the Boost Software License, Version 1.0.
// //
@@ -7,6 +7,10 @@
// http://www.boost.org/LICENSE_1_0.txt // http://www.boost.org/LICENSE_1_0.txt
#if defined(_MSC_VER)
#pragma warning( disable: 4804 ) // '>=': unsafe use of type 'bool' in operation
#endif
#include <boost/mp11/algorithm.hpp> #include <boost/mp11/algorithm.hpp>
#include <boost/mp11/list.hpp> #include <boost/mp11/list.hpp>
#include <boost/mp11/integral.hpp> #include <boost/mp11/integral.hpp>

View File

@@ -7,6 +7,10 @@
// http://www.boost.org/LICENSE_1_0.txt // http://www.boost.org/LICENSE_1_0.txt
#if defined(_MSC_VER)
#pragma warning( disable: 4244 ) // 'initializing': conversion from 'int' to 'char', possible loss of data
#endif
#include <boost/mp11/tuple.hpp> #include <boost/mp11/tuple.hpp>
#include <boost/core/lightweight_test.hpp> #include <boost/core/lightweight_test.hpp>
#include <tuple> #include <tuple>

View File

@@ -1,11 +1,16 @@
// Copyright 2015 Peter Dimov. // Copyright 2015 Peter Dimov.
// //
// Distributed under the Boost Software License, Version 1.0. // Distributed under the Boost Software License, Version 1.0.
// //
// See accompanying file LICENSE_1_0.txt or copy at // See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt // http://www.boost.org/LICENSE_1_0.txt
#if defined(_MSC_VER)
#pragma warning( disable: 4244 ) // 'initializing': conversion from 'int' to 'char', possible loss of data
#endif
#include <boost/mp11/tuple.hpp> #include <boost/mp11/tuple.hpp>
#include <boost/config.hpp> #include <boost/config.hpp>

View File

@@ -1,5 +1,5 @@
// Copyright 2015 Peter Dimov. // Copyright 2015 Peter Dimov.
// //
// Distributed under the Boost Software License, Version 1.0. // Distributed under the Boost Software License, Version 1.0.
// //
@@ -7,6 +7,10 @@
// http://www.boost.org/LICENSE_1_0.txt // http://www.boost.org/LICENSE_1_0.txt
#if defined(_MSC_VER)
#pragma warning( disable: 4244 ) // 'initializing': conversion from 'int' to 'char', possible loss of data
#endif
#include <boost/mp11/tuple.hpp> #include <boost/mp11/tuple.hpp>
#include <boost/core/lightweight_test.hpp> #include <boost/core/lightweight_test.hpp>
#include <tuple> #include <tuple>

View File

@@ -1,11 +1,16 @@
// Copyright 2015 Peter Dimov. // Copyright 2015 Peter Dimov.
// //
// Distributed under the Boost Software License, Version 1.0. // Distributed under the Boost Software License, Version 1.0.
// //
// See accompanying file LICENSE_1_0.txt or copy at // See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt // http://www.boost.org/LICENSE_1_0.txt
#if defined(_MSC_VER)
#pragma warning( disable: 4244 ) // 'initializing': conversion from 'int' to 'char', possible loss of data
#endif
#include <boost/mp11/tuple.hpp> #include <boost/mp11/tuple.hpp>
#include <boost/config.hpp> #include <boost/config.hpp>