From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.120; helo=mga04.intel.com; envelope-from=liming.gao@intel.com; receiver=edk2-devel@lists.01.org Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 8D36822344343 for ; Sun, 21 Jan 2018 18:15:56 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Jan 2018 18:21:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,394,1511856000"; d="scan'208";a="11930632" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga008.jf.intel.com with ESMTP; 21 Jan 2018 18:21:21 -0800 Received: from fmsmsx157.amr.corp.intel.com (10.18.116.73) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 21 Jan 2018 18:21:20 -0800 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX157.amr.corp.intel.com (10.18.116.73) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 21 Jan 2018 18:21:20 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.152]) by shsmsx102.ccr.corp.intel.com ([169.254.2.189]) with mapi id 14.03.0319.002; Mon, 22 Jan 2018 10:21:18 +0800 From: "Gao, Liming" To: Ard Biesheuvel , "edk2-devel@lists.01.org" CC: "leif.lindholm@linaro.org" , "Zhu, Yonghong" Thread-Topic: [PATCH] BaseTools/tools_def CLANG35: ignore unknown warning options Thread-Index: AQHTkUG4KHQuRutGlEKljztBq/FQdKN/LNXQ Date: Mon, 22 Jan 2018 02:21:18 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14E1A70E6@SHSMSX104.ccr.corp.intel.com> References: <20180119162207.13207-1-ard.biesheuvel@linaro.org> In-Reply-To: <20180119162207.13207-1-ard.biesheuvel@linaro.org> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH] BaseTools/tools_def CLANG35: ignore unknown warning options X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jan 2018 02:15:57 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Liming Gao >-----Original Message----- >From: Ard Biesheuvel [mailto:ard.biesheuvel@linaro.org] >Sent: Saturday, January 20, 2018 12:22 AM >To: edk2-devel@lists.01.org >Cc: leif.lindholm@linaro.org; Gao, Liming ; Zhu, >Yonghong ; Ard Biesheuvel > >Subject: [PATCH] BaseTools/tools_def CLANG35: ignore unknown warning >options > >Ironically, disabling warnings in the OpensslLib library build is >causing breakage when using the CLANG35 toolchain to build for ARM: > >error: unknown warning option '-Werror=3Dmaybe-uninitialized'; did you mea= n >'-Werror=3Duninitialized'? [-Werror,-Wunknown-warning-option] > >So let's add -Wno-unknown-warning-option to the list of warning to >ignore when using Clang 3.5 > >Contributed-under: TianoCore Contribution Agreement 1.1 >Signed-off-by: Ard Biesheuvel >--- > BaseTools/Conf/tools_def.template | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/BaseTools/Conf/tools_def.template >b/BaseTools/Conf/tools_def.template >index d8fde02ea351..6afe5ebe9fe3 100755 >--- a/BaseTools/Conf/tools_def.template >+++ b/BaseTools/Conf/tools_def.template >@@ -5595,7 +5595,7 @@ RELEASE_GCC5_AARCH64_DLINK_FLAGS =3D >DEF(GCC5_AARCH64_DLINK_FLAGS) -flto -Os -L$(W > DEFINE CLANG35_ARM_TARGET =3D -target arm-linux-gnueabihf > DEFINE CLANG35_AARCH64_TARGET =3D -target aarch64-linux-gnu > >-DEFINE CLANG35_WARNING_OVERRIDES =3D -Wno-parentheses-equality - >Wno-tautological-compare -Wno-tautological-constant-out-of-range-compare >-Wno-empty-body >+DEFINE CLANG35_WARNING_OVERRIDES =3D -Wno-parentheses-equality - >Wno-tautological-compare -Wno-tautological-constant-out-of-range-compare >-Wno-empty-body -Wno-unknown-warning-option > DEFINE CLANG35_ARM_CC_FLAGS =3D DEF(GCC_ARM_CC_FLAGS) >DEF(CLANG35_ARM_TARGET) DEF(CLANG35_WARNING_OVERRIDES) > DEFINE CLANG35_AARCH64_CC_FLAGS =3D DEF(GCC_AARCH64_CC_FLAGS) >DEF(CLANG35_AARCH64_TARGET) -mcmodel=3Dsmall >DEF(CLANG35_WARNING_OVERRIDES) > >-- >2.11.0