From 826236ffb9045b66641e203ef4a0437aacf63484 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 31 Oct 2016 15:42:47 +0200 Subject: [PATCH] Clang on MAC OS X doesn't support all options --HG-- branch : develop --- common.pri | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/common.pri b/common.pri index b8d0ffdc5..7753a3baf 100644 --- a/common.pri +++ b/common.pri @@ -284,7 +284,6 @@ CLANG_DEBUG_CXXFLAGS += \ -Wanalyzer-incompatible-plugin \ -Wanonymous-pack-parens \ -Warc \ - -Warc-abi \ -Warc-bridge-casts-disallowed-in-nonarc \ -Warc-maybe-repeated-use-of-weak \ -Warc-non-pod-memaccess \ @@ -620,7 +619,6 @@ CLANG_DEBUG_CXXFLAGS += \ -Wunused-parameter \ -Wunused-private-field \ -Wunused-result \ - -Wunused-sanitize-argument \ -Wunused-value \ -Wunused-variable \ -Wunused-volatile-lvalue \ @@ -642,6 +640,13 @@ CLANG_DEBUG_CXXFLAGS += \ -fcolor-diagnostics \ -fms-extensions # Need for pragma message +unix:!macx{ + #Clang on MAC OS X doesn't support all options + CLANG_DEBUG_CXXFLAGS += \ + -Warc-abi \ + -Wunused-sanitize-argument +} + ICC_DEBUG_CXXFLAGS += \ $$ISYSTEM \ # Ignore warnings Qt headers. -Wcomment \