diff --git a/include/fmt/core.h b/include/fmt/core.h index 399b70e7f6e2..9b0f8673d830 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -2446,6 +2446,7 @@ constexpr int get_arg_index_by_name(basic_string_view name) { } if constexpr (sizeof...(Args) > 0) return get_arg_index_by_name(name); + (void)name; return invalid_arg_index; } #endif