Skip to content

Commit 69263f4

Browse files
authored
Fix unused warning in fields_count.hpp (#187)
1 parent 469ac13 commit 69263f4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

include/boost/pfr/detail/fields_count.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@ constexpr std::size_t fields_count_compiler_limitation_next(std::size_t n) noexc
215215
#if defined(_MSC_VER) && (_MSC_VER <= 1920)
216216
if (n < 1024)
217217
return 1024;
218+
#else
219+
static_cast<void>(n);
218220
#endif
219221
return SIZE_MAX;
220222
}

0 commit comments

Comments
 (0)