Clang: Avoid flooding unknown warning on macOS

clang seems to be pretending to be gcc (besides clang and llvm) on macOS.

Change-Id: Ifd838a2918673b8877f5bb5fd8248d4a849664f7
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Christian Stenger
2020-11-23 13:39:13 +01:00
parent 79df1c0804
commit c13c9f1dea

View File

@@ -169,7 +169,7 @@ isEmpty(LLVM_VERSION) {
LLVM_VERSION =
} else {
# CLANG-UPGRADE-CHECK: Remove suppression if this warning is resolved.
gcc {
gcc:!clang: {
# GCC6 shows full version (6.4.0), while GCC7 and up show only major version (8)
GCC_VERSION = $$system("$$QMAKE_CXX -dumpversion")
GCC_MAJOR_VERSION = $$section(GCC_VERSION, ., 0, 0)