From dbbd69f2553fdd4b3b0423227500892cdc3c8edf Mon Sep 17 00:00:00 2001 From: Daniela Engert Date: Sat, 15 May 2021 19:01:31 +0200 Subject: [PATCH] Silence msvc warning about an unused named parameter Warning C4100 may cause compile failures under strict warning regimes. --- include/fmt/core.h | 1 + 1 file changed, 1 insertion(+) 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