diff options
author | Tim Landscheidt <tim@tim-landscheidt.de> | 2018-02-19 21:38:39 +0000 |
---|---|---|
committer | Tim Landscheidt <tim@tim-landscheidt.de> | 2018-02-19 21:38:39 +0000 |
commit | 4bc6db4abc83a65c822a83588189fa9db39754f1 (patch) | |
tree | 92e95336517ec47dcdc1212f954e994aa3fe8c68 /src/error.h | |
parent | fbccb7149eae348182bef7ac9dcba756fe72381d (diff) | |
download | fork-ledger-4bc6db4abc83a65c822a83588189fa9db39754f1.tar.gz fork-ledger-4bc6db4abc83a65c822a83588189fa9db39754f1.tar.bz2 fork-ledger-4bc6db4abc83a65c822a83588189fa9db39754f1.zip |
Fix warnings for -Wimplicit-fallthrough
Diffstat (limited to 'src/error.h')
-rw-r--r-- | src/error.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/error.h b/src/error.h index 88e09329..a628c1e9 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); |