Skip to content

Commit 22cd0f5

Browse files
committed
Fix unused warning in fields_count.hpp
1 parent ff415a2 commit 22cd0f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: include/boost/pfr/detail/fields_count.hpp

+2
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,8 @@ constexpr std::size_t fields_count_compiler_limitation_next(std::size_t n) noexc
217217
#if defined(_MSC_VER) && (_MSC_VER <= 1920)
218218
if (n < 1024)
219219
return 1024;
220+
#else
221+
static_cast<void>(n);
220222
#endif
221223
return SIZE_MAX;
222224
}

0 commit comments

Comments
 (0)