Suppress msvc warnings.

Fixes: https://github.com/boostorg/regex/issues/80
This commit is contained in:
jzmaddock
2020-01-20 19:51:46 +00:00
parent 3b98dc901a
commit 2cd947f7c4
19 changed files with 150 additions and 28 deletions

View File

@ -112,7 +112,7 @@ private:
boost::call_once(f,&init_data);
return do_get_data();
#else
static data_type d;
static data_type d = {};
return d;
#endif
}

View File

@ -99,7 +99,7 @@ void do_test(const charT& c, const tagT& tag)
boost::call_once(f, proc);
#endif
if(test_locale::cpp_locale_state() == test_locale::test_with_locale)
e1.imbue(test_locale::cpp_locale());
(void)e1.imbue(test_locale::cpp_locale());
if(test_locale::cpp_locale_state() != test_locale::no_test)
test(e1, tag);
#endif