diff --git a/alac.c b/alac.c
index b829e29..8e8805f 100644
--- a/alac.c
+++ b/alac.c
@@ -284,7 +284,9 @@ static int count_leading_zeros(int input)
     return output;
 }
 #else
+#if !defined(_MSC_VER)
 #warning using generic count leading zeroes. You may wish to write one for your CPU / compiler
+#endif
 static int count_leading_zeros(int input)
 {
     int output = 0;
