From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mx.groups.io with SMTP id smtpd.web10.713.1571188337734426234 for ; Tue, 15 Oct 2019 18:12:17 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.65, mailfrom: jian.j.wang@intel.com) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Oct 2019 18:12:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,301,1566889200"; d="scan'208";a="225616872" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga002.fm.intel.com with ESMTP; 15 Oct 2019 18:12:16 -0700 Received: from fmsmsx111.amr.corp.intel.com (10.18.116.5) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 15 Oct 2019 18:12:16 -0700 Received: from shsmsx106.ccr.corp.intel.com (10.239.4.159) by fmsmsx111.amr.corp.intel.com (10.18.116.5) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 15 Oct 2019 18:12:16 -0700 Received: from shsmsx107.ccr.corp.intel.com ([169.254.9.33]) by SHSMSX106.ccr.corp.intel.com ([169.254.10.119]) with mapi id 14.03.0439.000; Wed, 16 Oct 2019 09:12:14 +0800 From: "Wang, Jian J" To: "devel@edk2.groups.io" , "Gao, Liming" Subject: Re: [edk2-devel] [Patch v2 08/11] CryptoPkg: Append options to make CLANG9 tool chain pass build Thread-Topic: [edk2-devel] [Patch v2 08/11] CryptoPkg: Append options to make CLANG9 tool chain pass build Thread-Index: AQHVgu9dCwVZ29I6JkelmFsYCDbSyKdcd1Jw Date: Wed, 16 Oct 2019 01:12:13 +0000 Message-ID: References: <1571099210-12432-1-git-send-email-liming.gao@intel.com> <1571099210-12432-9-git-send-email-liming.gao@intel.com> In-Reply-To: <1571099210-12432-9-git-send-email-liming.gao@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZDk5NjRjNDYtMWEyYi00OWU5LTliMjgtNDc2NTM0ODlhOWFlIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiSFo1cThcLzJ1SWt2cXFMNjJwQzVMa3FaOEFsVkszTU5SSjZFd2NKaURHR2ZDNW45Ymx5MmFLNytmZjRWRjhcL1dWIn0= x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Return-Path: jian.j.wang@intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Jian J Wang > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of Liming Ga= o > Sent: Tuesday, October 15, 2019 8:27 AM > To: devel@edk2.groups.io > Subject: [edk2-devel] [Patch v2 08/11] CryptoPkg: Append options to make > CLANG9 tool chain pass build >=20 > Disable warning reported from CLANG9. >=20 > Signed-off-by: Liming Gao > --- > CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf | 1 + > CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf | 1 + > CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf | 1 + > CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf | 1 + > CryptoPkg/Library/OpensslLib/OpensslLib.inf | 1 + > CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf | 1 + > 6 files changed, 6 insertions(+) >=20 > diff --git a/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf > b/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf > index 8d4988e8c6..a98be2cd95 100644 > --- a/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf > +++ b/CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf > @@ -101,5 +101,6 @@ >=20 > GCC:*_CLANG35_*_CC_FLAGS =3D -std=3Dc99 > GCC:*_CLANG38_*_CC_FLAGS =3D -std=3Dc99 > + GCC:*_CLANG9_*_CC_FLAGS =3D -std=3Dc99 -Wno-error=3Dincompatible-poin= ter- > types >=20 > XCODE:*_*_*_CC_FLAGS =3D -std=3Dc99 > diff --git a/CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf > b/CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf > index 3da8bd8480..7b07dd13d2 100644 > --- a/CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf > +++ b/CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf > @@ -96,5 +96,6 @@ >=20 > GCC:*_CLANG35_*_CC_FLAGS =3D -std=3Dc99 > GCC:*_CLANG38_*_CC_FLAGS =3D -std=3Dc99 > + GCC:*_CLANG9_*_CC_FLAGS =3D -std=3Dc99 -Wno-error=3Dincompatible-poin= ter- > types >=20 > XCODE:*_*_*_CC_FLAGS =3D -std=3Dc99 > diff --git a/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf > b/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf > index 21a481eb77..d9e29ef660 100644 > --- a/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf > +++ b/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf > @@ -107,5 +107,6 @@ >=20 > GCC:*_CLANG35_*_CC_FLAGS =3D -std=3Dc99 > GCC:*_CLANG38_*_CC_FLAGS =3D -std=3Dc99 > + GCC:*_CLANG9_*_CC_FLAGS =3D -std=3Dc99 -Wno-error=3Dincompatible-poin= ter- > types >=20 > XCODE:*_*_*_CC_FLAGS =3D -std=3Dc99 > diff --git a/CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf > b/CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf > index 7c187e21b3..b4faaf3f80 100644 > --- a/CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf > +++ b/CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf > @@ -104,3 +104,4 @@ >=20 > GCC:*_CLANG35_*_CC_FLAGS =3D -std=3Dc99 > GCC:*_CLANG38_*_CC_FLAGS =3D -std=3Dc99 > + GCC:*_CLANG9_*_CC_FLAGS =3D -std=3Dc99 -Wno-error=3Dincompatible-poin= ter- > types > diff --git a/CryptoPkg/Library/OpensslLib/OpensslLib.inf > b/CryptoPkg/Library/OpensslLib/OpensslLib.inf > index 7432321fd4..b40d82783b 100644 > --- a/CryptoPkg/Library/OpensslLib/OpensslLib.inf > +++ b/CryptoPkg/Library/OpensslLib/OpensslLib.inf > @@ -662,6 +662,7 @@ > GCC:*_*_AARCH64_CC_FLAGS =3D $(OPENSSL_FLAGS) -Wno-error=3Dmaybe- > uninitialized -Wno-format -Wno-error=3Dunused-but-set-variable > GCC:*_CLANG35_*_CC_FLAGS =3D -std=3Dc99 -Wno-error=3Duninitialized > GCC:*_CLANG38_*_CC_FLAGS =3D -std=3Dc99 -Wno-error=3Duninitialized > + GCC:*_CLANG9_*_CC_FLAGS =3D -std=3Dc99 -Wno-error=3Duninitialized -Wn= o- > error=3Dincompatible-pointer-types -Wno-error=3Dpointer-sign -Wno-error= =3Dimplicit- > function-declaration -Wno-error=3Dignored-pragma-optimize >=20 > # suppress the following warnings in openssl so we don't break the bu= ild 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 8134b45eda..0a60196c8a 100644 > --- a/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf > +++ b/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf > @@ -610,6 +610,7 @@ > GCC:*_*_AARCH64_CC_FLAGS =3D $(OPENSSL_FLAGS) -Wno-error=3Dmaybe- > uninitialized -Wno-format -Wno-error=3Dunused-but-set-variable > GCC:*_CLANG35_*_CC_FLAGS =3D -std=3Dc99 -Wno-error=3Duninitialized > GCC:*_CLANG38_*_CC_FLAGS =3D -std=3Dc99 -Wno-error=3Duninitialized > + GCC:*_CLANG9_*_CC_FLAGS =3D -std=3Dc99 -Wno-error=3Duninitialized -Wn= o- > error=3Dincompatible-pointer-types -Wno-error=3Dpointer-sign -Wno-error= =3Dimplicit- > function-declaration -Wno-error=3Dignored-pragma-optimize >=20 > # suppress the following warnings in openssl so we don't break the bu= ild with > warnings-as-errors: > # 1295: Deprecated declaration - give arg types > -- > 2.13.0.windows.1 >=20 >=20 >=20