From d95dbd6934a77044336cf8ce0e8a4a1efdd2e849 Mon Sep 17 00:00:00 2001 From: Seokjin Lee Date: Wed, 12 Aug 2020 10:49:40 +0900 Subject: [PATCH] fix: warning C4100: unreferenced formal parameter Add [[maybe_unused]] to fix it. --- include/fmt/compile.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/compile.h b/include/fmt/compile.h index 40e1a5a0..b9f4e8dc 100644 --- a/include/fmt/compile.h +++ b/include/fmt/compile.h @@ -368,7 +368,7 @@ template struct type_list {}; // Returns a reference to the argument at index N from [first, rest...]. template -constexpr const auto& get(const T& first, const Args&... rest) { +constexpr const auto& get([[maybe_unused]] const T& first, [[maybe_unused]] const Args&... rest) { static_assert(N < 1 + sizeof...(Args), "index is out of bounds"); if constexpr (N == 0) return first;