QCryptographicHash: fix incorrect GCC check
It's Q_CC_GNU, not Q_CC_GCC.
Amends 0411d98192
.
Pick-to: 6.6 6.5
Change-Id: I56c4393e5955ac1bbcc8a198b11487cff775b16d
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
This commit is contained in:
parent
a19585eee1
commit
5c96b2a864
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user