From 90d2df3be34771900a34cab46c1c60b64e7e2f3e Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Sun, 11 Mar 2018 14:22:10 -0700 Subject: [PATCH] Tidy up a warning --- CHANGELOG.md | 1 + include/boost/beast/http/impl/verb.ipp | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ef062f1f..dada71f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ Version 165: * Fix BOOST_NO_CXX11_ALLOCATOR check +* Tidy up a warning -------------------------------------------------------------------------------- diff --git a/include/boost/beast/http/impl/verb.ipp b/include/boost/beast/http/impl/verb.ipp index bfd703d0..8f8b2e33 100644 --- a/include/boost/beast/http/impl/verb.ipp +++ b/include/boost/beast/http/impl/verb.ipp @@ -72,6 +72,10 @@ verb_to_string(verb v) } 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 ""; } template