diff --git a/src/corelib/tools/qcontainertools_impl.h b/src/corelib/tools/qcontainertools_impl.h index 22f5cdf3363..adaa254a04a 100644 --- a/src/corelib/tools/qcontainertools_impl.h +++ b/src/corelib/tools/qcontainertools_impl.h @@ -56,6 +56,9 @@ static constexpr bool q_points_into_range(const T &p, const C &c) noexcept std::data(c) + std::distance(std::begin(c), std::end(c))); } +QT_WARNING_PUSH +QT_WARNING_DISABLE_GCC("-Wmaybe-uninitialized") + template void q_uninitialized_move_if_noexcept_n(T* first, N n, T* out) { @@ -81,6 +84,8 @@ void q_uninitialized_relocate_n(T* first, N n, T* out) } } +QT_WARNING_POP + template void q_relocate_overlap_n_left_move(iterator first, N n, iterator d_first) {