From ea37a24f9861de83bffb27f7ada02c3c9dbdf88c Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Wed, 18 Dec 2019 01:00:11 +0200 Subject: [PATCH] Disable warnings exposed by address-model=64 --- test/mp_for_each.cpp | 4 +++- test/mp_with_index.cpp | 8 +++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/test/mp_for_each.cpp b/test/mp_for_each.cpp index 1db533e..d727e02 100644 --- a/test/mp_for_each.cpp +++ b/test/mp_for_each.cpp @@ -1,5 +1,5 @@ -// Copyright 2017 Peter Dimov. +// Copyright 2017 Peter Dimov. // // Distributed under the Boost Software License, Version 1.0. // @@ -11,6 +11,8 @@ #if BOOST_MP11_MSVC # pragma warning( disable: 4503 ) // decorated name length exceeded # pragma warning( disable: 4307 ) // '*': integral constant overflow +# pragma warning( disable: 4244 ) // conversion from size_t to uint32_t +# pragma warning( disable: 4267 ) // conversion from size_t to uint32_t #endif #include diff --git a/test/mp_with_index.cpp b/test/mp_with_index.cpp index 94cbb38..85a142d 100644 --- a/test/mp_with_index.cpp +++ b/test/mp_with_index.cpp @@ -1,5 +1,5 @@ -// Copyright 2017 Peter Dimov. +// Copyright 2017 Peter Dimov. // // Distributed under the Boost Software License, Version 1.0. // @@ -7,6 +7,12 @@ // http://www.boost.org/LICENSE_1_0.txt +#include + +#if BOOST_MP11_MSVC +# pragma warning( disable: 4503 ) // decorated name length exceeded +#endif + #include #include #include