From 6ad7a525cfe0e9c6d027daf83e410925ef94bf1d Mon Sep 17 00:00:00 2001 From: gfgtdf Date: Wed, 22 Oct 2014 01:16:56 +0200 Subject: [PATCH] fix msvc warning --- src/util.hpp | 2 ++ 1 file changed, 2 insertions(+) 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; }