summaryrefslogtreecommitdiff
path: root/src/error.h
diff options
context:
space:
mode:
authorTim Landscheidt <tim@tim-landscheidt.de>2018-02-19 21:38:39 +0000
committerTim Landscheidt <tim@tim-landscheidt.de>2018-02-19 21:38:39 +0000
commit4bc6db4abc83a65c822a83588189fa9db39754f1 (patch)
tree92e95336517ec47dcdc1212f954e994aa3fe8c68 /src/error.h
parentfbccb7149eae348182bef7ac9dcba756fe72381d (diff)
downloadfork-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.h2
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);