From 273cd77205d16564145a7b1190b4eb6f457c82b2 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 5 Apr 2019 12:27:30 +0300 Subject: [PATCH] Remove unknown Clang options. Suppress Wunknown-warning-option. --HG-- branch : develop --- common.pri | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/common.pri b/common.pri index d28e2a56f..6cbe811f0 100644 --- a/common.pri +++ b/common.pri @@ -408,7 +408,6 @@ CLANG_DEBUG_CXXFLAGS += \ -Wabstract-final-class \ -Wabstract-vbase-init \ -Waddress \ - -Waddress-of-array-temporary \ -Waddress-of-temporary \ -Waggregate-return \ -Wall \ @@ -519,7 +518,6 @@ CLANG_DEBUG_CXXFLAGS += \ -Wenum-compare \ -Wenum-conversion \ -Wexplicit-ownership-type \ - -Wextended-offsetof \ -Wextern-initializer \ -Wextra \ -Wextra-semi \ @@ -733,7 +731,6 @@ CLANG_DEBUG_CXXFLAGS += \ -Wunicode \ -Wunicode-whitespace \ -Wuninitialized \ -# -Wunknown-warning-option \ -Wunnamed-type-template-args \ -Wunneeded-internal-declaration \ -Wunneeded-member-function \ @@ -771,9 +768,8 @@ CLANG_DEBUG_CXXFLAGS += \ -fcolor-diagnostics \ -fms-extensions # Need for pragma message -freebsd-clang* { - # https://bitbucket.org/dismine/valentina/issues/877/lots-of-warnings-unknown-warning-option - CLANG_DEBUG_CXXFLAGS -= -Wextended-offsetof +CONFIG(release, debug|release){ + CLANG_DEBUG_CXXFLAGS += -Wno-unknown-warning-option } ICC_DEBUG_CXXFLAGS += \