From 69263f4757be207bdd076fdd197c28cdb45e2424 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anarthal=20=28Rub=C3=A9n=20P=C3=A9rez=29?= <34971811+anarthal@users.noreply.github.com> Date: Tue, 15 Oct 2024 08:41:21 +0200 Subject: [PATCH] Fix unused warning in fields_count.hpp (#187) --- include/boost/pfr/detail/fields_count.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/boost/pfr/detail/fields_count.hpp b/include/boost/pfr/detail/fields_count.hpp index 9ca38741..c3397b3b 100644 --- a/include/boost/pfr/detail/fields_count.hpp +++ b/include/boost/pfr/detail/fields_count.hpp @@ -215,6 +215,8 @@ constexpr std::size_t fields_count_compiler_limitation_next(std::size_t n) noexc #if defined(_MSC_VER) && (_MSC_VER <= 1920) if (n < 1024) return 1024; +#else + static_cast(n); #endif return SIZE_MAX; }