diff --git a/src/util.hpp b/src/util.hpp index 7f9e603f6f1..dd1da5a8170 100644 --- a/src/util.hpp +++ b/src/util.hpp @@ -241,6 +241,8 @@ inline std::size_t bit_width() { */ template inline std::size_t bit_width(const T& x) { + //msvc 2010 gives an unused parameter warning otherwise + (void)x; return sizeof(x) * std::numeric_limits::digits; }