diff --git a/oscar/oscar.pro b/oscar/oscar.pro index 5becfa8d..71c5d30b 100644 --- a/oscar/oscar.pro +++ b/oscar/oscar.pro @@ -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