From 6469b9037cae85b963fecaac1fb80baf92e188dc 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 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