diff --git a/src/wallet/wallet_errors.h b/src/wallet/wallet_errors.h index 01e0ce0d1..acfe703bd 100644 --- a/src/wallet/wallet_errors.h +++ b/src/wallet/wallet_errors.h @@ -993,7 +993,7 @@ namespace tools #if !defined(_MSC_VER) template - void throw_wallet_ex(std::string&& loc, const TArgs&... args) + [[noreturn]] void throw_wallet_ex(std::string&& loc, const TArgs&... args) { TException e(std::move(loc), args...); LOG_PRINT_L0(e.to_string()); @@ -1006,7 +1006,7 @@ namespace tools #include template - void throw_wallet_ex(std::string&& loc) + [[noreturn]] void throw_wallet_ex(std::string&& loc) { TException e(std::move(loc)); LOG_PRINT_L0(e.to_string()); @@ -1015,7 +1015,7 @@ namespace tools #define GEN_throw_wallet_ex(z, n, data) \ template \ - void throw_wallet_ex(std::string&& loc, BOOST_PP_ENUM_BINARY_PARAMS(n, const TArg, &arg)) \ + [[noreturn]] void throw_wallet_ex(std::string&& loc, BOOST_PP_ENUM_BINARY_PARAMS(n, const TArg, &arg)) \ { \ TException e(std::move(loc), BOOST_PP_ENUM_PARAMS(n, arg)); \ LOG_PRINT_L0(e.to_string()); \