From dcf6dc5bd2732fbe4b0b05670d7aaec83171eb01 Mon Sep 17 00:00:00 2001 From: Phil Olynyk Date: Mon, 31 Aug 2020 12:59:18 -0400 Subject: [PATCH] Add g++ version 10 test --- oscar/oscar.pro | 9 +++++++++ 1 file changed, 9 insertions(+) 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