fix clang check when clang++ is called c++ (#1924)

* fix clang check when clang++ is called c++

* fix syntax
This commit is contained in:
Steve Wills 2020-08-31 10:42:30 -04:00 committed by GitHub
parent 9ae79e650d
commit 36b9466f89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,8 @@ win32-msvc* {
QMAKE_CXXFLAGS_WARN_ON += -Werror=return-type
equals(QMAKE_CXX, "clang++") {
CXX_VERSION = $$system($$QMAKE_CXX --version)
contains(CXX_VERSION, "clang") {
QMAKE_CXXFLAGS_WARN_ON += -Wno-unused-local-typedef
QMAKE_CXXFLAGS_WARN_ON += -Wno-unused-private-field
} else {