diff --git a/glm/detail/func_integer.inl b/glm/detail/func_integer.inl index 67177a05..456f4a60 100644 --- a/glm/detail/func_integer.inl +++ b/glm/detail/func_integer.inl @@ -192,6 +192,9 @@ namespace detail return vec(Value64 % (Max32 + static_cast(1))); } +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wduplicated-branches" + // usubBorrow GLM_FUNC_QUALIFIER uint usubBorrow(uint const& x, uint const& y, uint & Borrow) { @@ -202,6 +205,8 @@ namespace detail return static_cast((static_cast(1) << static_cast(32)) + (static_cast(y) - static_cast(x))); } +#pragma GCC diagnostic pop + template GLM_FUNC_QUALIFIER vec usubBorrow(vec const& x, vec const& y, vec& Borrow) {