From 829f4fd8ab6804a7cbd1fa5d393498f855f3fc97 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Tue, 26 Apr 2011 08:12:27 +0000 Subject: [PATCH] Suppress msvc warning. Fixes #5504. [SVN r71496] --- include/boost/regex/pending/unicode_iterator.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/boost/regex/pending/unicode_iterator.hpp b/include/boost/regex/pending/unicode_iterator.hpp index 657ca0a4..a8faefd5 100644 --- a/include/boost/regex/pending/unicode_iterator.hpp +++ b/include/boost/regex/pending/unicode_iterator.hpp @@ -113,6 +113,10 @@ inline unsigned utf8_trailing_byte_count(boost::uint8_t c) return utf8_byte_count(c) - 1; } +#ifdef BOOST_MSVC +#pragma warning(push) +#pragma warning(disable:4100) +#endif inline void invalid_utf32_code_point(::boost::uint32_t val) { #ifndef BOOST_NO_STD_LOCALE @@ -124,6 +128,9 @@ inline void invalid_utf32_code_point(::boost::uint32_t val) #endif boost::throw_exception(e); } +#ifdef BOOST_MSVC +#pragma warning(pop) +#endif } // namespace detail