Tidy up a warning

This commit is contained in:
Vinnie Falco
2018-03-11 14:22:10 -07:00
parent 06ee7c7ac6
commit 90d2df3be3
2 changed files with 5 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
Version 165: Version 165:
* Fix BOOST_NO_CXX11_ALLOCATOR check * Fix BOOST_NO_CXX11_ALLOCATOR check
* Tidy up a warning
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------

View File

@@ -72,6 +72,10 @@ verb_to_string(verb v)
} }
BOOST_THROW_EXCEPTION(std::invalid_argument{"unknown verb"}); BOOST_THROW_EXCEPTION(std::invalid_argument{"unknown verb"});
// Help some compilers which don't know the next line is
// unreachable, otherwise spurious warnings are generated.
return "<unknown>";
} }
template<class = void> template<class = void>