From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from BAY004-OMC4S12.hotmail.com (bay004-omc4s12.hotmail.com [65.54.190.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id EB2F5802E1 for ; Sat, 4 Mar 2017 19:00:05 -0800 (PST) Received: from EUR02-VE1-obe.outbound.protection.outlook.com ([65.54.190.199]) by BAY004-OMC4S12.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Sat, 4 Mar 2017 19:00:05 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=YlTC2ws5ZGZ6d3ei1tCyJCouHA6I80GntMAvNFU8jDU=; b=qX0OxVCPE9gEono6g54uDTt4uIRbH8dXYZpcokxSnELQMs1uZ7Wccvem6N7mDDmLLytQnJVYEaqolMS6Sg0LHCNb/PoW1K2IVRs4egimckwi+sDP/vTd7OlY+5mClGH4Jvk+vEu8+AaSFtVzpEscz2eNtkEGheW6GhUU/aW98GxFNbn/tvu5xJn0bAMPWvjgJLfdpi44rJ6a/J64f5x7stPxyYkEKZ+kX+CWjO4Ub1zScaFrcM95UF2r65I4M66PYSZcWU6Frxz3S3uKjuSrftEp9RuwFPxtOsdAdocCOoxSwHDxSrTgLBk86vPafOrsoQcnr41W9TFiNTt3zzLuWg== Received: from AM5EUR02FT054.eop-EUR02.prod.protection.outlook.com (10.152.8.53) by AM5EUR02HT118.eop-EUR02.prod.protection.outlook.com (10.152.9.115) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.7; Sun, 5 Mar 2017 03:00:03 +0000 Received: from AM5PR0601MB2579.eurprd06.prod.outlook.com (10.152.8.56) by AM5EUR02FT054.mail.protection.outlook.com (10.152.8.200) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.7 via Frontend Transport; Sun, 5 Mar 2017 03:00:03 +0000 Received: from AM5PR0601MB2579.eurprd06.prod.outlook.com ([10.168.154.13]) by AM5PR0601MB2579.eurprd06.prod.outlook.com ([10.168.154.13]) with mapi id 15.01.0947.018; Sun, 5 Mar 2017 03:00:02 +0000 From: =?iso-8859-1?Q?Marvin_H=E4user?= To: "edk2-devel@lists.01.org" CC: "liming.gao@intel.com" , "yonghong.zhu@intel.com" Thread-Topic: [PATCH] BaseTools/CLANG: set -Wno-unused-but-set-variable on RELEASE builds Thread-Index: AQHSlVyVt77oHRQkW0u6YHIqXbpoqA== Date: Sun, 5 Mar 2017 03:00:02 +0000 Message-ID: Accept-Language: de-DE, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: lists.01.org; dkim=none (message not signed) header.d=none;lists.01.org; dmarc=none action=none header.from=outlook.com; x-incomingtopheadermarker: OriginalChecksum:567EF089DD4882313C8ADB7CE410FCB3C55D1F30A0363BD4290E97B9CAC6546C; UpperCasedChecksum:41DF74C2B1D9F88BA1EB74425FD5ABE21E0F86DD28A575852FD8C1018DB77C07; SizeAsReceived:7673; Count:35 x-ms-exchange-messagesentrepresentingtype: 1 x-incomingheadercount: 35 x-eopattributedmessage: 0 x-microsoft-exchange-diagnostics: 1; AM5EUR02HT118; 5:YjIw4Gx9/SKzbu3grCKt9YitDIA25djEwgeaUp1FAstEiRsHnlJcYX783EBpsXhI6cjRwDv66KhvCbSMVdN/Md2ScnDIx5sHakptnH2VS1+08kgkVwWBq4gYAJ8eDZJ2907ObtKJvpHZDFD5uW7GkQ==; 24:JXCtAoL4YV8zrskduLumKc4LJedEvk/24qbwXRAy6e7LIZA5Xp9Z37Tv6hgQjsN3v+hlD5Ldbd/s71i6Hzq0eeyV78yXZ0hgrpFNiF5UQ4I=; 7:l4XIVK8/N4/Ufd4cfyhx3AZMjbGGWJRzKKiejQtX7kTR5xSdp5DU1CfN3QyDiBi3ebPpDhGFVnYbkjGPwEf8v+8Nga2ffumkzZGj+3N6941fk5xzxsJJz/DiHoQWvTZvnD1BDjb6Dgy/dwNkYnjF14GLrhNM3uledo+boRlvGiW+tz+O8K6Xs1I+7aFI0pSnUQYmDD9xDx8InAzdM4MXNiOs+rj21eWi+AZl8crJt5kqECRIcOTCi2ZjO/J+LuTs5NfQ4k2wfU78XDaimjeUOTX/9262Crqj8raxNEx9iagGPYzAhPCQXoSyvDqlNlcO x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900015); DIR:OUT; SFP:1102; SCL:1; SRVR:AM5EUR02HT118; H:AM5PR0601MB2579.eurprd06.prod.outlook.com; FPR:; SPF:None; LANG:en; x-ms-office365-filtering-correlation-id: 7d7e3a2a-db3b-451e-fa74-08d46373b6db x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201702061074)(5061506573)(5061507331)(1603103135)(1601125254)(1603101448)(1701031045); SRVR:AM5EUR02HT118; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(432015087)(444000031); SRVR:AM5EUR02HT118; BCL:0; PCL:0; RULEID:; SRVR:AM5EUR02HT118; x-forefront-prvs: 02379661A3 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Mar 2017 03:00:02.3115 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5EUR02HT118 X-OriginalArrivalTime: 05 Mar 2017 03:00:05.0778 (UTC) FILETIME=[9775DF20:01D2955C] Subject: [PATCH] BaseTools/CLANG: set -Wno-unused-but-set-variable on RELEASE builds X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Mar 2017 03:00:06 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Set -Wno-unused-but-set-variable on RELEASE builds so variables only verified in DEBUG code (e.g. ASSERT()) do not trigger build errors. This is done to align with GCC compilation: https://github.com/tianocore/edk2/commit/20d00edf21d2f2144921622891d8b59a15= 53cd83 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Marvin Haeuser --- BaseTools/Conf/tools_def.template | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/BaseTools/Conf/tools_def.template b/BaseTools/Conf/tools_def.t= emplate index ab4f936e7a8b..b9a063215354 100755 --- a/BaseTools/Conf/tools_def.template +++ b/BaseTools/Conf/tools_def.template @@ -5467,7 +5467,7 @@ DEFINE CLANG35_AARCH64_CC_FLAGS =3D DEF(GCC_AARCH64_= CC_FLAGS) DEF(CLANG35_AARCH64 *_CLANG35_ARM_CC_XIPFLAGS =3D DEF(GCC_ARM_CC_XIPFLAGS) =20 DEBUG_CLANG35_ARM_CC_FLAGS =3D DEF(CLANG35_ARM_CC_FLAGS) $(ARCHCC_FL= AGS) $(PLATFORM_FLAGS) -O0 -RELEASE_CLANG35_ARM_CC_FLAGS =3D DEF(CLANG35_ARM_CC_FLAGS) $(ARCHCC_FL= AGS) $(PLATFORM_FLAGS) -Oz +RELEASE_CLANG35_ARM_CC_FLAGS =3D DEF(CLANG35_ARM_CC_FLAGS) $(ARCHCC_FL= AGS) $(PLATFORM_FLAGS) -Oz -Wno-unused-but-set-variable =20 ################## # CLANG35 AARCH64 definitions @@ -5489,7 +5489,7 @@ RELEASE_CLANG35_ARM_CC_FLAGS =3D DEF(CLANG35_ARM_= CC_FLAGS) $(ARCHCC_FLAGS) $(P *_CLANG35_AARCH64_CC_XIPFLAGS =3D DEF(GCC_AARCH64_CC_XIPFLAGS) =20 DEBUG_CLANG35_AARCH64_CC_FLAGS =3D DEF(CLANG35_AARCH64_CC_FLAGS) $(ARCHC= C_FLAGS) $(PLATFORM_FLAGS) -O0 -RELEASE_CLANG35_AARCH64_CC_FLAGS =3D DEF(CLANG35_AARCH64_CC_FLAGS) $(ARCHC= C_FLAGS) $(PLATFORM_FLAGS) -Oz -fomit-frame-pointer +RELEASE_CLANG35_AARCH64_CC_FLAGS =3D DEF(CLANG35_AARCH64_CC_FLAGS) $(ARCHC= C_FLAGS) $(PLATFORM_FLAGS) -Oz -fomit-frame-pointer -Wno-unused-but-set-var= iable =20 ##########################################################################= ########## # @@ -5543,7 +5543,7 @@ DEBUG_CLANG38_IA32_CC_FLAGS =3D DEF(CLANG38_A= LL_CC_FLAGS) -m32 -Oz -flto - DEBUG_CLANG38_IA32_DLINK_FLAGS =3D DEF(GCC5_IA32_X64_DLINK_FLAGS) -fl= to -Wl,-Oz -Wl,-melf_i386 -Wl,--oformat=3Delf32-i386 DEBUG_CLANG38_IA32_DLINK2_FLAGS =3D DEF(GCC5_IA32_DLINK2_FLAGS) -O3 =20 -RELEASE_CLANG38_IA32_CC_FLAGS =3D DEF(CLANG38_ALL_CC_FLAGS) -m32 -Oz= -flto -march=3Di586 DEF(CLANG38_IA32_TARGET) +RELEASE_CLANG38_IA32_CC_FLAGS =3D DEF(CLANG38_ALL_CC_FLAGS) -m32 -Oz= -flto -march=3Di586 DEF(CLANG38_IA32_TARGET) -Wno-unused-but-set-variable RELEASE_CLANG38_IA32_DLINK_FLAGS =3D DEF(GCC5_IA32_X64_DLINK_FLAGS) -fl= to -Wl,-Oz -Wl,-melf_i386 -Wl,--oformat=3Delf32-i386 RELEASE_CLANG38_IA32_DLINK2_FLAGS =3D DEF(GCC5_IA32_DLINK2_FLAGS) -O3 =20 @@ -5580,7 +5580,7 @@ DEBUG_CLANG38_X64_CC_FLAGS =3D DEF(CLANG38_AL= L_CC_FLAGS) -m64 "-DEFIAPI=3D__ DEBUG_CLANG38_X64_DLINK_FLAGS =3D DEF(GCC5_IA32_X64_DLINK_FLAGS) -flt= o -Wl,-Oz -Wl,-melf_x86_64 -Wl,--oformat=3Delf64-x86-64 -Wl,-pie -mcmodel= =3Dsmall DEBUG_CLANG38_X64_DLINK2_FLAGS =3D DEF(GCC5_X64_DLINK2_FLAGS) -O3 =20 -RELEASE_CLANG38_X64_CC_FLAGS =3D DEF(CLANG38_ALL_CC_FLAGS) -m64 "-DE= FIAPI=3D__attribute__((ms_abi))" -mno-red-zone -mcmodel=3Dsmall -fpie -Oz -= flto DEF(CLANG38_X64_TARGET) +RELEASE_CLANG38_X64_CC_FLAGS =3D DEF(CLANG38_ALL_CC_FLAGS) -m64 "-DE= FIAPI=3D__attribute__((ms_abi))" -mno-red-zone -mcmodel=3Dsmall -fpie -Oz -= flto DEF(CLANG38_X64_TARGET) -Wno-unused-but-set-variable RELEASE_CLANG38_X64_DLINK_FLAGS =3D DEF(GCC5_IA32_X64_DLINK_FLAGS) -flt= o -Wl,-Oz -Wl,-melf_x86_64 -Wl,--oformat=3Delf64-x86-64 -Wl,-pie -mcmodel= =3Dsmall RELEASE_CLANG38_X64_DLINK2_FLAGS =3D DEF(GCC5_X64_DLINK2_FLAGS) -O3 =20 --=20 2.11.1.windows.1