From 4b69c78751488704c4dfdf03937112f179b0d4f4 Mon Sep 17 00:00:00 2001 From: Seokjin Lee Date: Wed, 12 Aug 2020 22:57:22 +0900 Subject: [PATCH] fix: warning C4100: unreferenced formal parameter (#1814) Add [[maybe_unused]] to fix it. --- include/fmt/compile.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/fmt/compile.h b/include/fmt/compile.h index 40e1a5a0..fa0b2812 100644 --- a/include/fmt/compile.h +++ b/include/fmt/compile.h @@ -368,7 +368,8 @@ 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;