From 450cbedf4fea186b04ef9e8958e2f56acc1398c4 Mon Sep 17 00:00:00 2001 From: Ivan Shynkarenka Date: Fri, 14 May 2021 01:49:36 +0300 Subject: [PATCH] Fixing warning C4702: unreachable code --- include/fmt/os.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/os.h b/include/fmt/os.h index 1a8833de..927fa352 100644 --- a/include/fmt/os.h +++ b/include/fmt/os.h @@ -197,7 +197,7 @@ FMT_API std::system_error vwindows_error(int error_code, string_view format_str, template std::system_error windows_error(int error_code, string_view message, const Args&... args) { - return vwindows_error(error_code, message, make_format_args(args...)); + vwindows_error(error_code, message, make_format_args(args...)); } // Reports a Windows error without throwing an exception.