Add g++ version 10 test

This commit is contained in:
Phil Olynyk 2020-08-31 12:59:18 -04:00
parent 265bdc2d7e
commit dcf6dc5bd2

View File

@ -490,6 +490,15 @@ DISTFILES += help/default.css \
QMAKE_CFLAGS += -Werror
QMAKE_CXXFLAGS += -Werror
gcc | clang {
COMPILER_VERSION = $$system($$QMAKE_CXX " -dumpversion")
COMPILER_MAJOR = $$str_member($$COMPILER_VERSION)
greaterThan(COMPILER_MAJOR, 9) : {
QMAKE_CFLAGS += -Wno-error=depreciated-copy
QMAKE_CXX_FLAGS += -Wno-error=depreciated-copy
message("Removing depreciated-copy error")
}
}
# Make deprecation warnings just warnings
QMAKE_CFLAGS += -Wno-error=deprecated-declarations
QMAKE_CXXFLAGS += -Wno-error=deprecated-declarations