From 53cc92334f0b11c9de8702b679f11ca923edf434 Mon Sep 17 00:00:00 2001 From: Fabian Kosmale Date: Fri, 6 Jan 2023 15:27:01 +0100 Subject: [PATCH] Avoid unused-template warning on macOS with xcodebuild MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: QTBUG-109874 Change-Id: Ic75643300ee3e27da758da3f44b5dc4caeb7814e Reviewed-by: Tor Arne Vestbø --- src/corelib/global/q20algorithm.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/corelib/global/q20algorithm.h b/src/corelib/global/q20algorithm.h index f670a5dbeee..24d801b2cdf 100644 --- a/src/corelib/global/q20algorithm.h +++ b/src/corelib/global/q20algorithm.h @@ -147,7 +147,7 @@ using std::ranges::none_of; [[maybe_unused]] inline constexpr struct { // Niebloid template - constexpr bool operator()(InputIterator first, Sentinel last, Predicate pred, Projection proj = {}) const + [[maybe_unused]] constexpr bool operator()(InputIterator first, Sentinel last, Predicate pred, Projection proj = {}) const { while (first != last) { if (std::invoke(pred, std::invoke(proj, *first))) @@ -160,7 +160,7 @@ using std::ranges::none_of; [[maybe_unused]] inline constexpr struct { // Niebloid template - constexpr bool operator()(InputIterator first, Sentinel last, Predicate pred, Projection proj = {}) const + [[maybe_unused]] constexpr bool operator()(InputIterator first, Sentinel last, Predicate pred, Projection proj = {}) const { while (first != last) { if (!std::invoke(pred, std::invoke(proj, *first))) @@ -173,7 +173,7 @@ using std::ranges::none_of; [[maybe_unused]] inline constexpr struct { // Niebloid template - constexpr bool operator()(InputIterator first, Sentinel last, Predicate pred, Projection proj = {}) const + [[maybe_unused]] constexpr bool operator()(InputIterator first, Sentinel last, Predicate pred, Projection proj = {}) const { while (first != last) { if (std::invoke(pred, std::invoke(proj, *first)))