core: fix warning bugs on unused vars introduced by the last commit
diff --git a/MathExtras.h b/MathExtras.h
index 484faf4..d330b4a 100644
--- a/MathExtras.h
+++ b/MathExtras.h
@@ -87,7 +87,7 @@
/// bit. Ex. CountLeadingZeros_32(0x00F000FF) == 8.
/// Returns 32 if the word is zero.
static inline unsigned CountLeadingZeros_32(uint32_t Value) {
- unsigned Shift, Count; // result
+ unsigned Count; // result
#if __GNUC__ >= 4
// PowerPC is defined for __builtin_clz(0)
#if !defined(__ppc__) && !defined(__ppc64__)
@@ -95,6 +95,7 @@
#endif
Count = __builtin_clz(Value);
#else
+ unsigned Shift;
if (!Value) return 32;
Count = 0;
// bisection method for count leading zeros
@@ -123,7 +124,7 @@
/// one bit (64 bit edition.)
/// Returns 64 if the word is zero.
static inline unsigned CountLeadingZeros_64(uint64_t Value) {
- unsigned Shift, Count; // result
+ unsigned Count; // result
#if __GNUC__ >= 4
// PowerPC is defined for __builtin_clzll(0)
#if !defined(__ppc__) && !defined(__ppc64__)
@@ -132,6 +133,7 @@
Count = __builtin_clzll(Value);
#else
#ifndef _MSC_VER
+ unsigned Shift;
if (sizeof(long) == sizeof(int64_t))
{
if (!Value) return 64;