@@ -993,7 +993,7 @@ namespace tools
993
993
#if !defined(_MSC_VER)
994
994
995
995
template <typename TException, typename ... TArgs>
996
- void throw_wallet_ex (std::string&& loc, const TArgs&... args)
996
+ [[noreturn]] void throw_wallet_ex (std::string&& loc, const TArgs&... args)
997
997
{
998
998
TException e (std::move (loc), args...);
999
999
LOG_PRINT_L0 (e.to_string ());
@@ -1006,7 +1006,7 @@ namespace tools
1006
1006
#include < boost/preprocessor/repetition/repeat_from_to.hpp>
1007
1007
1008
1008
template <typename TException>
1009
- void throw_wallet_ex (std::string&& loc)
1009
+ [[noreturn]] void throw_wallet_ex (std::string&& loc)
1010
1010
{
1011
1011
TException e (std::move (loc));
1012
1012
LOG_PRINT_L0 (e.to_string ());
@@ -1015,7 +1015,7 @@ namespace tools
1015
1015
1016
1016
#define GEN_throw_wallet_ex (z, n, data ) \
1017
1017
template <typename TException, BOOST_PP_ENUM_PARAMS(n, typename TArg)> \
1018
- void throw_wallet_ex (std::string&& loc, BOOST_PP_ENUM_BINARY_PARAMS(n, const TArg, &arg)) \
1018
+ [[noreturn]] void throw_wallet_ex (std::string&& loc, BOOST_PP_ENUM_BINARY_PARAMS(n, const TArg, &arg)) \
1019
1019
{ \
1020
1020
TException e (std::move (loc), BOOST_PP_ENUM_PARAMS (n, arg)); \
1021
1021
LOG_PRINT_L0 (e.to_string ()); \
0 commit comments