From c66b155dcb328d898f0b71b5d14a916f33236af9 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Tue, 19 Jan 2021 23:02:07 +0300 Subject: [PATCH] Remove unnecessary fmt::throw_exception destructor body Tested with GCC and Clang in Debug mode, it now works. --- Utilities/StrFmt.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Utilities/StrFmt.h b/Utilities/StrFmt.h index 8505f52e04..92c4d19a7c 100644 --- a/Utilities/StrFmt.h +++ b/Utilities/StrFmt.h @@ -298,14 +298,7 @@ namespace fmt } #ifndef _MSC_VER -#if defined(_DEBUG) - [[noreturn]] ~throw_exception() - { - __builtin_unreachable(); - } -#else [[noreturn]] ~throw_exception(); -#endif #endif };