summaryrefslogtreecommitdiff
path: root/src/error.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2019-01-14 17:25:28 -0800
committerGitHub <noreply@github.com>2019-01-14 17:25:28 -0800
commitf2617fc69cdd4920fb6a78122b621e3db3f9ba58 (patch)
tree68ddb1e2efbb52e83f74ce9a2498e1875b6e2009 /src/error.h
parent5a54f079c0f511b95777013288c335d11a7552aa (diff)
parent4bc6db4abc83a65c822a83588189fa9db39754f1 (diff)
downloadfork-ledger-f2617fc69cdd4920fb6a78122b621e3db3f9ba58.tar.gz
fork-ledger-f2617fc69cdd4920fb6a78122b621e3db3f9ba58.tar.bz2
fork-ledger-f2617fc69cdd4920fb6a78122b621e3db3f9ba58.zip
Merge pull request #540 from scfc/fix-warnings-for-implicit-fallthrough
Fix warnings for -Wimplicit-fallthrough
Diffstat (limited to 'src/error.h')
-rw-r--r--src/error.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/error.h b/src/error.h
index ba278519..bc9953cd 100644
--- a/src/error.h
+++ b/src/error.h
@@ -47,7 +47,7 @@ namespace ledger {
extern std::ostringstream _desc_buffer;
template <typename T>
-inline void throw_func(const string& message) {
+[[ noreturn ]] inline void throw_func(const string& message) {
_desc_buffer.clear();
_desc_buffer.str("");
throw T(message);