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.