2
0
mirror of https://github.com/boostorg/log.git synced 2026-02-01 08:32:15 +00:00

Add explicit markup of fallthrough between switch/case labels.

Silences some compiler warnings.

Closes https://github.com/boostorg/log/issues/115.
This commit is contained in:
Andrey Semashev
2020-04-14 00:29:14 +03:00
parent 43b944da2e
commit c068c2a5aa
2 changed files with 5 additions and 1 deletions

View File

@@ -125,6 +125,7 @@ inline std::size_t code_convert(const SourceCharT* begin, const SourceCharT* end
// Looks like the tail of the source buffer contains only part of the last character.
// In this case we intentionally fall through to throw an exception.
}
BOOST_FALLTHROUGH;
default: // std::codecvt_base::error
BOOST_LOG_THROW_DESCR(conversion_error, "Could not convert character encoding");