From db9090560142ca5e9cb9c4e810de834c2d385dd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Nordheim?= Date: Mon, 11 Sep 2023 17:57:00 +0200 Subject: [PATCH] Mark potentially unused variable as maybe_unused Fixes compile error with MinGW clang. Amends de6f4053139377b63cf92f6bca4d96d488682de4 Pick-to: 6.5 Change-Id: Idc1fac9d92369cfc79b5c770830bb43b3c5aae91 Reviewed-by: Marc Mutz Reviewed-by: Thiago Macieira (cherry picked from commit b1531815465eeff249c1e8e27c3354e4a5da0eee) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/global/qlibraryinfo.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp index d284bbd3e6d..a8934fa38c4 100644 --- a/src/corelib/global/qlibraryinfo.cpp +++ b/src/corelib/global/qlibraryinfo.cpp @@ -475,6 +475,7 @@ QLibraryInfoPrivate::LocationInfo QLibraryInfoPrivate::locationInfo(QLibraryInfo "Examples", "examples", "Tests", "tests" ); + [[maybe_unused]] constexpr QByteArrayView dot{"."}; LocationInfo result;