mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-29 01:42:37 +00:00
fix msvc warning
This commit is contained in:
parent
66712590d0
commit
6ad7a525cf
@ -241,6 +241,8 @@ inline std::size_t bit_width() {
|
||||
*/
|
||||
template<typename T>
|
||||
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<unsigned char>::digits;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user