From 2969f119eb8f9bc76e511565a0535cea46b6233a Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Thu, 17 Aug 2023 08:43:31 +0200 Subject: [PATCH] QCryptographicHash: fix incorrect GCC check It's Q_CC_GNU, not Q_CC_GCC. Amends 0411d98192ede84b115618ece876579fd79252f8. Change-Id: I56c4393e5955ac1bbcc8a198b11487cff775b16d Reviewed-by: Ivan Solovev Reviewed-by: Giuseppe D'Angelo (cherry picked from commit 5c96b2a864d7cd522c2e1c9bb842c2d9d8b11692) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/tools/qcryptographichash.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/tools/qcryptographichash.cpp b/src/corelib/tools/qcryptographichash.cpp index d71c822ef72..1d759e04f47 100644 --- a/src/corelib/tools/qcryptographichash.cpp +++ b/src/corelib/tools/qcryptographichash.cpp @@ -1246,7 +1246,7 @@ static constexpr int qt_hash_block_size(QCryptographicHash::Algorithm method) return BLAKE2S_BLOCKBYTES; #endif // QT_CRYPTOGRAPHICHASH_ONLY_SHA1 case QCryptographicHash::NumAlgorithms: -#if !defined(Q_GCC_ONLY) || Q_CC_GCC >= 900 +#if !defined(Q_CC_GNU_ONLY) || Q_CC_GNU >= 900 // GCC 8 has trouble with Q_UNREACHABLE() in constexpr functions Q_UNREACHABLE(); #endif