diff --git a/include/fmt/core.h b/include/fmt/core.h index 293d8242..087d0b3f 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