diff --git a/include/fmt/printf.h b/include/fmt/printf.h index b8496b1c..9fa329b3 100644 --- a/include/fmt/printf.h +++ b/include/fmt/printf.h @@ -46,6 +46,9 @@ class printf_precision_handler { template ::value)> int operator()(T) { FMT_THROW(format_error("precision is not integer")); +#if FMT_MSC_VER + return 0; +#endif } }; @@ -166,6 +169,9 @@ template class printf_width_handler { template ::value)> unsigned operator()(T) { FMT_THROW(format_error("width is not integer")); +#if FMT_MSC_VER + return 0; +#endif } };