From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mx.groups.io with SMTP id smtpd.web10.10473.1672998308248841355 for ; Fri, 06 Jan 2023 01:45:08 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=G6nzYWhL; spf=pass (domain: intel.com, ip: 192.55.52.93, mailfrom: jiewen.yao@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672998308; x=1704534308; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=cVpiADrIHciw11yiYD4qxaGsX+b2kjnyPyo1p5qfBIk=; b=G6nzYWhLkrMAVoib2Mli9VgMTdnDkQlADDcNUEq5seZp3OixXJnvU2Vj 4/Dn/Gjqb+QtC8MdqkYahkL/jYRJ27nmUZvDtXA6TDm1j1kUrAd4eqfbV PWlxFwnhpeHpvUpFkuXxKDF05bszX/QM3ewnaaqxW2ru9uTDLfxchfMio oKw7JGHFck4TtHsF+MxUDIS7cceE2cnNMNVIG4rSzL79clTOUrOxr/KRN aQdIM+55FO5Ax8sOS3LMefMhMfQ3N9hnwac4D6+petBbVxTdgfHDfJz3i okcc/5JZFAEKAHqhrjx3c/t7rgcM4xM9EDFOV7H9lBEjEAnKOP1tLsdsf w==; X-IronPort-AV: E=McAfee;i="6500,9779,10581"; a="320149030" X-IronPort-AV: E=Sophos;i="5.96,304,1665471600"; d="scan'208";a="320149030" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jan 2023 01:45:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10581"; a="984627335" X-IronPort-AV: E=Sophos;i="5.96,304,1665471600"; d="scan'208";a="984627335" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by fmsmga005.fm.intel.com with ESMTP; 06 Jan 2023 01:45:05 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Fri, 6 Jan 2023 01:45:05 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Fri, 6 Jan 2023 01:45:05 -0800 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16 via Frontend Transport; Fri, 6 Jan 2023 01:45:05 -0800 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.172) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.16; Fri, 6 Jan 2023 01:45:04 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BdfJtm6PkjWQq6dQl5uSvX6skyksyC1Wh5adPBoKkk4wnPvBSJ7eQs2dANW5AAjnFS+GLpknXQ0NaEttEyTjDHr0m0+NRMfN6hqaUsjAQGzagxpfQvSjHR5dkuIgHkx3iXkG/GDP6qcHBwtIXKykn/jJRYR1yMJoSYouEDC/xkrYrYH2gIrTHHwkNXwUAzx9sI9LzoCJ71exCCIV+GAM1be5SrcQx8lcI2Cfjm9qy4/F8GL9jSFeyOHNxOtcnJDIWMijpKABZLA5xrxfb0ximBnkhjm9Gl8Ov418bjq3ARK1EEEvboSRxWg4Bav9FeA45IFNmFQvpPdH0Wp9qEmIig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=YTcyzyU0f7vu7V0gK4MtgmgCdO7gC5fr9Wi+vTyCejU=; b=AVCZME1IjG3GBh1W2wjl8btYMvW4NmpJ2XRg2snFVKDrJd8acWz0QCpX2DIx4upPsWYlVOULDCLfn7ZOZjamGo0upDc4Qc3h/LqyRDM6x5L6yLjfM0JSdILNfb6F02oi+1CVRo/dHHuUxQVAG6LRLh62FC8b8TKP53tz56vvxPN2GJxgi4QHuWMcQipKG6jHMqhIpvUKq6AJ5hcLpyw5uoliagljTr4sX3sfVtKe+eHuGRLE3EPk5AoVIejUb21hJZrpVGcrmt8FrXasdjdIatleFcmV3xE6uI23/Nh9zbrE6OXyQsX0qUpLJQ48/+FxonZT88B1dAxWKwzrQEqhjQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from MW4PR11MB5872.namprd11.prod.outlook.com (2603:10b6:303:169::14) by BY1PR11MB8031.namprd11.prod.outlook.com (2603:10b6:a03:529::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.19; Fri, 6 Jan 2023 09:45:03 +0000 Received: from MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::5f56:1bdc:2eae:c041]) by MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::5f56:1bdc:2eae:c041%9]) with mapi id 15.20.5944.019; Fri, 6 Jan 2023 09:45:02 +0000 From: "Yao, Jiewen" To: "Chen, Gang C" , "devel@edk2.groups.io" CC: "Wang, Jian J" Subject: Re: [PATCH] CryptoPkg/Library: add -Wno-unused-but-set-variable for openssl Thread-Topic: [PATCH] CryptoPkg/Library: add -Wno-unused-but-set-variable for openssl Thread-Index: AQHZILRaffM46UQKR0mMsUgDxpHC866RJZqw Date: Fri, 6 Jan 2023 09:45:02 +0000 Message-ID: References: <20230105032015.1448399-1-gang.c.chen@intel.com> In-Reply-To: <20230105032015.1448399-1-gang.c.chen@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MW4PR11MB5872:EE_|BY1PR11MB8031:EE_ x-ms-office365-filtering-correlation-id: 8d33c79b-25d4-4cb6-2012-08daefcaaf40 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 4I9+XPPEm4Mb5XE0c1SOARdwopvY9CUACjhLDY+UlM5nzyktr+GqqBA0StEnjO6/Vpd7ZVCxaaDYapTX5TbAtAWBcjWMJdx+hG0OWmaO8ER1A/ylabSHWzrEKvKqvH155kibbxltwC7b7WOt5qAXEJfguuy+w/+8HsF5ucYVESq5weKPnhG3IrOrDsVMOXJkYQoXjVIJo4oj3snv2ckBxkXNUky4//eG4GvHwCDtbrxwFqJzSQ3yGZoBCPQ2ikCpSk1tnmsXg49P0Bftr0Ts6tSg1Z3lolBL7CBfBq5qcyAEohzdbbCg3/tKBMGG89VZ7zYxe2EJKpwR0LJD7vKAoXnCa0fVLiEUeTllqF4t/CJSVgO4A1ECkIyWI+1/I8PRxU2pC+I5icZqTOVeHrNdEjudsgzAXablmvw/DuGN4WajRK3YtQOFysGOUdeQtt7fpYFgVOOtGEIp42E47JXWAdiqFfMwEtb+VVcEXeWXnWgqZ095FKa41ckxbS6/ZZa9sgNzUe3Y4SBbSrflOgtb9XK5X5dxI5HoFdlIAgNtAPiUZ8VFXZ8SOgAlRM8zx7wsLqmU8/w1H2zSuDu/tb34wNrXxsOEWGLJ1+SdHI0ZJmOmkKLYV+0hE/uZgGM4fgxKedTXnUkRnYF236KUSQ2QPr9Nl4B28iml3yBwvWKBtZk1DdIKBlEzCFvTYEMdoAbqt4sPzfyxqtAm94poWz8Qjg== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW4PR11MB5872.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(366004)(396003)(39860400002)(136003)(346002)(376002)(451199015)(8676002)(64756008)(8936002)(4326008)(66446008)(66476007)(66946007)(52536014)(2906002)(110136005)(66556008)(316002)(478600001)(6506007)(7696005)(71200400001)(41300700001)(9686003)(107886003)(53546011)(76116006)(26005)(186003)(83380400001)(33656002)(38100700002)(5660300002)(122000001)(38070700005)(82960400001)(86362001)(55016003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?+xGR1cZ4p+yxkxZ1KKjPwUSIamo0b3nWvIOMFRFnHwPob7o/EdPjxgLqZd6P?= =?us-ascii?Q?dJwoOaqrc1JrmT8idhjnMGZVLJzZf8R6iq5+GC3csW8fKj2WdHU4L8zlgP3p?= =?us-ascii?Q?jGzUXlK4GI0R3FyF/wzbwCFz2B2NRQqSTcFWpmyebN/o8BB0T8zNvIhdmCBB?= =?us-ascii?Q?XcmB0//kVff3pqxZV4Otn8wCRaUfHFhbHasx4SHG7vrXOPJK5kpboeJVv50C?= =?us-ascii?Q?RqMwRJrM1v3OgaALVwLDU5YihxuSj6h+x98EnrB7IyBJngCyh2f9pwIejax7?= =?us-ascii?Q?qvaHALKBTBq26+//ZpkvdyF1hhU8180yxRnDsktmCGBUb6CinU1lhuz0Qqt6?= =?us-ascii?Q?O7x8KDyjkuYk3/ICMUu6t04rAaeZweA/osjXdf/l1yvm5Lc3orYTeSYsJUWI?= =?us-ascii?Q?pYodJaliaZAwiSDycI7my9hQaQ655tfK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e0313MRvp3XwnB57ZFonReShfOFfiemYVC5+tkypQvp/?= =?us-ascii?Q?xdi3B3iMEnt9FC0wbuzQr64cDrAiMhTix9XoDybL4ayQ0UGxBDJJYk68TLpY?= =?us-ascii?Q?+VPaeK4ZdH38rBdBwi1vXMoWE7/0aDvXbeekQFeWE92Y5aUFpZNsbnsW1Jyc?= =?us-ascii?Q?6VfQXGz9grviNPaGaoUgbpEXNrpVlMZibNEfRLBcVbhQg9rcKTGfQBhHpoum?= =?us-ascii?Q?ZM1TMEjI29dO3w9s4M8Rdyg2gcYoONtuMoFwrG4x?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW4PR11MB5872.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8d33c79b-25d4-4cb6-2012-08daefcaaf40 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Jan 2023 09:45:02.8368 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Deoten+VtwBhSZ13FSgQwSJzA1vRvwApbSbplABptfcwCv0GuqOgIjnG25GzWC+JZ29LIFoKV9BfSUAkFm44Gw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR11MB8031 Return-Path: jiewen.yao@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Would you please file a Bugzilla to describe the issue? > -----Original Message----- > From: Chen, Gang C > Sent: Thursday, January 5, 2023 11:20 AM > To: devel@edk2.groups.io > Cc: Yao, Jiewen ; Wang, Jian J > ; Chen, Gang C > Subject: [PATCH] CryptoPkg/Library: add -Wno-unused-but-set-variable for > openssl >=20 > The GCC warning fix is not in 1.1.1x. Ignore the warning type > -Wno-unused-but-set-variable with GCC compiler in the build option. >=20 > Cc: Jiewen Yao > Cc: Jian J Wang > Signed-off-by: Gang Chen > --- > CryptoPkg/Library/OpensslLib/OpensslLib.inf | 2 ++ > CryptoPkg/Library/OpensslLib/OpensslLibAccel.inf | 2 ++ > CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf | 2 ++ > CryptoPkg/Library/OpensslLib/OpensslLibFull.inf | 2 ++ > CryptoPkg/Library/OpensslLib/OpensslLibFullAccel.inf | 2 ++ > 5 files changed, 10 insertions(+) >=20 > diff --git a/CryptoPkg/Library/OpensslLib/OpensslLib.inf > b/CryptoPkg/Library/OpensslLib/OpensslLib.inf > index 60c6c24b0a..8daab2fe55 100644 > --- a/CryptoPkg/Library/OpensslLib/OpensslLib.inf > +++ b/CryptoPkg/Library/OpensslLib/OpensslLib.inf > @@ -641,6 +641,8 @@ > GCC:*_CLANG35_*_CC_FLAGS =3D -std=3Dc99 -Wno-error=3Duninitialized > GCC:*_CLANG38_*_CC_FLAGS =3D -std=3Dc99 -Wno-error=3Duninitialized > GCC:*_CLANGPDB_*_CC_FLAGS =3D -std=3Dc99 -Wno-error=3Duninitialized -W= no- > error=3Dincompatible-pointer-types -Wno-error=3Dpointer-sign -Wno- > error=3Dimplicit-function-declaration -Wno-error=3Dignored-pragma-optimiz= e > + # Revisit after switching to 3.0 branch > + GCC:*_GCC5_*_CC_FLAGS =3D -Wno-unused-but-set-variable >=20 > # suppress the following warnings in openssl so we don't break the bui= ld > with warnings-as-errors: > # 1295: Deprecated declaration - give arg types > diff --git a/CryptoPkg/Library/OpensslLib/OpensslLibAccel.inf > b/CryptoPkg/Library/OpensslLib/OpensslLibAccel.inf > index 103ef7bda2..b7e553df17 100644 > --- a/CryptoPkg/Library/OpensslLib/OpensslLibAccel.inf > +++ b/CryptoPkg/Library/OpensslLib/OpensslLibAccel.inf > @@ -689,6 +689,8 @@ > GCC:*_CLANG35_*_CC_FLAGS =3D -std=3Dc99 -Wno-error=3Duninitialized > GCC:*_CLANG38_*_CC_FLAGS =3D -std=3Dc99 -Wno-error=3Duninitialized > GCC:*_CLANGPDB_*_CC_FLAGS =3D -std=3Dc99 -Wno-error=3Duninitialized -W= no- > error=3Dincompatible-pointer-types -Wno-error=3Dpointer-sign -Wno- > error=3Dimplicit-function-declaration -Wno-error=3Dignored-pragma-optimiz= e > + # Revisit after switching to 3.0 branch > + GCC:*_GCC5_*_CC_FLAGS =3D -Wno-unused-but-set-variable >=20 > # suppress the following warnings in openssl so we don't break the bui= ld > with warnings-as-errors: > # 1295: Deprecated declaration - give arg types > diff --git a/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf > b/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf > index c4eaea888c..2472c1f663 100644 > --- a/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf > +++ b/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf > @@ -591,6 +591,8 @@ > GCC:*_CLANG35_*_CC_FLAGS =3D -std=3Dc99 -Wno-error=3Duninitialized > GCC:*_CLANG38_*_CC_FLAGS =3D -std=3Dc99 -Wno-error=3Duninitialized > GCC:*_CLANGPDB_*_CC_FLAGS =3D -std=3Dc99 -Wno-error=3Duninitialized -W= no- > error=3Dincompatible-pointer-types -Wno-error=3Dpointer-sign -Wno- > error=3Dimplicit-function-declaration -Wno-error=3Dignored-pragma-optimiz= e > + # Revisit after switching to 3.0 branch > + GCC:*_GCC5_*_CC_FLAGS =3D -Wno-unused-but-set-variable >=20 > # suppress the following warnings in openssl so we don't break the bui= ld > with warnings-as-errors: > # 1295: Deprecated declaration - give arg types > diff --git a/CryptoPkg/Library/OpensslLib/OpensslLibFull.inf > b/CryptoPkg/Library/OpensslLib/OpensslLibFull.inf > index 309e43055c..94c53a07c0 100644 > --- a/CryptoPkg/Library/OpensslLib/OpensslLibFull.inf > +++ b/CryptoPkg/Library/OpensslLib/OpensslLibFull.inf > @@ -696,6 +696,8 @@ > GCC:*_CLANG35_*_CC_FLAGS =3D -std=3Dc99 -Wno-error=3Duninitialized > GCC:*_CLANG38_*_CC_FLAGS =3D -std=3Dc99 -Wno-error=3Duninitialized > GCC:*_CLANGPDB_*_CC_FLAGS =3D -std=3Dc99 -Wno-error=3Duninitialized -W= no- > error=3Dincompatible-pointer-types -Wno-error=3Dpointer-sign -Wno- > error=3Dimplicit-function-declaration -Wno-error=3Dignored-pragma-optimiz= e > + # Revisit after switching to 3.0 branch > + GCC:*_GCC5_*_CC_FLAGS =3D -Wno-unused-but-set-variable >=20 > # suppress the following warnings in openssl so we don't break the bui= ld > with warnings-as-errors: > # 1295: Deprecated declaration - give arg types > diff --git a/CryptoPkg/Library/OpensslLib/OpensslLibFullAccel.inf > b/CryptoPkg/Library/OpensslLib/OpensslLibFullAccel.inf > index 4eeeeb79bd..78e6f0e112 100644 > --- a/CryptoPkg/Library/OpensslLib/OpensslLibFullAccel.inf > +++ b/CryptoPkg/Library/OpensslLib/OpensslLibFullAccel.inf > @@ -744,6 +744,8 @@ > GCC:*_CLANG35_*_CC_FLAGS =3D -std=3Dc99 -Wno-error=3Duninitialized > GCC:*_CLANG38_*_CC_FLAGS =3D -std=3Dc99 -Wno-error=3Duninitialized > GCC:*_CLANGPDB_*_CC_FLAGS =3D -std=3Dc99 -Wno-error=3Duninitialized -W= no- > error=3Dincompatible-pointer-types -Wno-error=3Dpointer-sign -Wno- > error=3Dimplicit-function-declaration -Wno-error=3Dignored-pragma-optimiz= e > + # Revisit after switching to 3.0 branch > + GCC:*_GCC5_*_CC_FLAGS =3D -Wno-unused-but-set-variable >=20 > # suppress the following warnings in openssl so we don't break the bui= ld > with warnings-as-errors: > # 1295: Deprecated declaration - give arg types > -- > 2.38.1