de-fuzz: fix 2 more gcc warnings

This commit is contained in:
jzmaddock
2017-02-24 11:48:27 +00:00
parent 93926479e3
commit 1acbd42eb8
3 changed files with 6 additions and 3 deletions

View File

@ -152,7 +152,7 @@
# if defined(BOOST_REGEX_NO_W32) || BOOST_PLAT_WINDOWS_RUNTIME # if defined(BOOST_REGEX_NO_W32) || BOOST_PLAT_WINDOWS_RUNTIME
# define BOOST_REGEX_NO_FILEITER # define BOOST_REGEX_NO_FILEITER
# endif # endif
#else // defined(_WIN32) #else /* defined(_WIN32) */
# if !defined(BOOST_HAS_DIRENT_H) # if !defined(BOOST_HAS_DIRENT_H)
# define BOOST_REGEX_NO_FILEITER # define BOOST_REGEX_NO_FILEITER
# endif # endif

View File

@ -410,7 +410,7 @@ void copy_results(MR1& out, MR2 const& in)
if(in[i].captures().size()) if(in[i].captures().size())
{ {
out[i].get_captures().assign(in[i].captures().size(), typename MR1::value_type()); out[i].get_captures().assign(in[i].captures().size(), typename MR1::value_type());
for(int j = 0; j < out[i].captures().size(); ++j) for(int j = 0; j < (int)out[i].captures().size(); ++j)
{ {
out[i].get_captures()[j].first = in[i].captures()[j].first.base(); out[i].get_captures()[j].first = in[i].captures()[j].first.base();
out[i].get_captures()[j].second = in[i].captures()[j].second.base(); out[i].get_captures()[j].second = in[i].captures()[j].second.base();

View File

@ -117,7 +117,10 @@ inline unsigned utf8_trailing_byte_count(boost::uint8_t c)
#pragma warning(push) #pragma warning(push)
#pragma warning(disable:4100) #pragma warning(disable:4100)
#endif #endif
BOOST_NORETURN inline void invalid_utf32_code_point(::boost::uint32_t val) #ifndef BOOST_NO_EXCEPTIONS
BOOST_NORETURN
#endif
inline void invalid_utf32_code_point(::boost::uint32_t val)
{ {
#ifndef BOOST_NO_STD_LOCALE #ifndef BOOST_NO_STD_LOCALE
std::stringstream ss; std::stringstream ss;