From 4bc6db4abc83a65c822a83588189fa9db39754f1 Mon Sep 17 00:00:00 2001 From: Tim Landscheidt Date: Mon, 19 Feb 2018 21:38:39 +0000 Subject: Fix warnings for -Wimplicit-fallthrough --- src/error.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/error.h') 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 -inline void throw_func(const string& message) { +[[ noreturn ]] inline void throw_func(const string& message) { _desc_buffer.clear(); _desc_buffer.str(""); throw T(message); -- cgit v1.2.3