From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933333AbdBPUAQ (ORCPT ); Thu, 16 Feb 2017 15:00:16 -0500 Received: from terminus.zytor.com ([65.50.211.136]:48696 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932761AbdBPUAL (ORCPT ); Thu, 16 Feb 2017 15:00:11 -0500 Date: Thu, 16 Feb 2017 11:59:00 -0800 From: tip-bot for Arnaldo Carvalho de Melo Message-ID: Cc: tglx@linutronix.de, linux-kernel@vger.kernel.org, namhyung@kernel.org, adrian.hunter@intel.com, acme@redhat.com, mingo@kernel.org, jolsa@kernel.org, dsahern@gmail.com, wangnan0@huawei.com, hpa@zytor.com Reply-To: adrian.hunter@intel.com, mingo@kernel.org, acme@redhat.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, namhyung@kernel.org, jolsa@kernel.org, dsahern@gmail.com, hpa@zytor.com, wangnan0@huawei.com To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] tools: Suppress request for warning options not existent in clang Git-Commit-ID: 093b75ef5995ea35d7f6bdb6c7b32a42a1999813 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 093b75ef5995ea35d7f6bdb6c7b32a42a1999813 Gitweb: http://git.kernel.org/tip/093b75ef5995ea35d7f6bdb6c7b32a42a1999813 Author: Arnaldo Carvalho de Melo AuthorDate: Tue, 14 Feb 2017 10:34:35 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 14 Feb 2017 10:34:35 -0300 tools: Suppress request for warning options not existent in clang To allow building with clang, avoiding: error: unknown warning option '-Wstrict-aliasing=3'; did you mean '-Wstring-plus-int'? [-Werror,-Wunknown-warning-option] Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-xvthlvmhzfnt7jx73jgmaea1@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/scripts/Makefile.include | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/scripts/Makefile.include b/tools/scripts/Makefile.include index 19edc1a..621578a 100644 --- a/tools/scripts/Makefile.include +++ b/tools/scripts/Makefile.include @@ -32,7 +32,6 @@ EXTRA_WARNINGS += -Wold-style-definition EXTRA_WARNINGS += -Wpacked EXTRA_WARNINGS += -Wredundant-decls EXTRA_WARNINGS += -Wshadow -EXTRA_WARNINGS += -Wstrict-aliasing=3 EXTRA_WARNINGS += -Wstrict-prototypes EXTRA_WARNINGS += -Wswitch-default EXTRA_WARNINGS += -Wswitch-enum @@ -40,6 +39,10 @@ EXTRA_WARNINGS += -Wundef EXTRA_WARNINGS += -Wwrite-strings EXTRA_WARNINGS += -Wformat +ifneq ($(CC), clang) +EXTRA_WARNINGS += -Wstrict-aliasing=3 +endif + ifneq ($(findstring $(MAKEFLAGS), w),w) PRINT_DIR = --no-print-directory else