Avoid warnings about unused parameters that tend to come up a lot when
[oota-llvm.git] / include / llvm / Support / MathExtras.h
index be76f3215577c29733b7da42c32ddef23fc48b09..a65bfbcd203a8cea12df253296a88974131ac4e8 100644 (file)
@@ -45,7 +45,7 @@ enum ZeroBehavior {
 template <typename T>
 typename enable_if_c<std::numeric_limits<T>::is_integer &&
                      !std::numeric_limits<T>::is_signed, std::size_t>::type
-countTrailingZeros(T Val, ZeroBehavior ZB = ZB_Width) {
+countTrailingZeros(T Val, ZeroBehavior /*ZB*/ = ZB_Width) {
   if (!Val)
     return std::numeric_limits<T>::digits;
   if (Val & 0x1)
@@ -114,7 +114,7 @@ inline std::size_t countTrailingZeros<uint64_t>(uint64_t Val, ZeroBehavior ZB) {
 template <typename T>
 typename enable_if_c<std::numeric_limits<T>::is_integer &&
                      !std::numeric_limits<T>::is_signed, std::size_t>::type
-countLeadingZeros(T Val, ZeroBehavior ZB = ZB_Width) {
+countLeadingZeros(T Val, ZeroBehavior /*ZB*/ = ZB_Width) {
   if (!Val)
     return std::numeric_limits<T>::digits;