build: avoid -Wno-error=stringop-overread for clang

In order to prevent a build error when building with clang (e.g. macOS), only
specify -Wno-error=stringop-overread for gcc.
This commit is contained in:
Mark Vitale 2022-04-06 22:46:54 -04:00
parent 20ea508eb6
commit 707ee7c717

View File

@ -534,10 +534,12 @@ gcc | clang {
message("$$QMAKE_CXX major version $$COMPILER_MAJOR")
greaterThan(COMPILER_MAJOR, 10) : {
QMAKE_CFLAGS += -Wno-error=stringop-overread
QMAKE_CXXFLAGS += -Wno-error=stringop-overread
message("Removing stringop-overread error")
equals($$QMAKE_CXX, "gcc") : {
greaterThan(COMPILER_MAJOR, 10) : {
QMAKE_CFLAGS += -Wno-error=stringop-overread
QMAKE_CXXFLAGS += -Wno-error=stringop-overread
message("Removing stringop-overread error")
}
}
}