From b7b261977ecc1013a63792a3afef894741dc05f7 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 24 Aug 2025 08:30:17 -0700 Subject: [PATCH] Simplify report_error --- include/fmt/format-inl.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/fmt/format-inl.h b/include/fmt/format-inl.h index 8f0355b3..9861d29e 100644 --- a/include/fmt/format-inl.h +++ b/include/fmt/format-inl.h @@ -140,9 +140,7 @@ FMT_FUNC void report_error(const char* message) { if (!b) return; #endif #if FMT_USE_EXCEPTIONS - // Use FMT_THROW instead of throw to avoid bogus unreachable code warnings - // from MSVC. - FMT_THROW(format_error(message)); + throw format_error(message); #else fputs(message, stderr); abort();