1
0
Эх сурвалжийг харах

bit: suppress a wrong warning for bugprone-assert-side-effect

Michele Caini 1 жил өмнө
parent
commit
2fb2ace002
1 өөрчлөгдсөн 1 нэмэгдсэн , 0 устгасан
  1. 1 0
      src/entt/core/bit.hpp

+ 1 - 0
src/entt/core/bit.hpp

@@ -41,6 +41,7 @@ template<typename Type>
  */
 template<typename Type>
 [[nodiscard]] constexpr std::enable_if_t<std::is_unsigned_v<Type>, Type> next_power_of_two(const Type value) noexcept {
+    // NOLINTNEXTLINE(bugprone-assert-side-effect)
     ENTT_ASSERT_CONSTEXPR(value < (Type{1u} << (std::numeric_limits<Type>::digits - 1)), "Numeric limits exceeded");
     Type curr = value - (value != 0u);