From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.120]) by mx.groups.io with SMTP id smtpd.web10.1478.1571131800096966384 for ; Tue, 15 Oct 2019 02:30:00 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GfKjFdpN; spf=pass (domain: redhat.com, ip: 207.211.31.120, mailfrom: philmd@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1571131799; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yBlChcewqEjXq8vVLn6GVUCr/QMI/RayRrBmLO9c0iU=; b=GfKjFdpNe1Pouud9KXuAw2Ud+THjCjbAkjFmLTLoXRb9l2UE5vPKqe2Cnxnkpp7MinJ3mP r9rq4O9K/tuaQM5yqZjG1i6U8/BDQI5hJ7PMVxYJZEdNyBsy2iGPrUFUNqb1EbCk6a3VL1 7xz0yV2Z1XJiRZT52FEPDaSAl8Ge7So= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-255-yfVLZsQxOGy5S4xsneBsgw-1; Tue, 15 Oct 2019 05:29:56 -0400 Received: by mail-wr1-f71.google.com with SMTP id j2so872686wrg.19 for ; Tue, 15 Oct 2019 02:29:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=dzIrjWeDTiJlr8+qh7dXS5CATfgYnkzEO0u7FI6XbLs=; b=HA49hKBLsYPjsBv/VpgJvL9wstsN182c1Dn678maYUzzeC8zgsLip/n137x5RkO98L 6/1oy28azocmZTNgaSDvCscAg4+Bb4kVwp8QHyx1Hc7RYXhatj+ptqLp9t6zoRuqVLhI kHfYa7AEOH+AhwvGOc85o48cLwQqcT5dw65kMvEpZMB6bIUPcijQsn3dHPMTDEckQgSX L5tFP1QX9jDa1HNbqxbv5uo41OgH6oqmccLXXX2uGxMIuQV/6SxYKluYTgIiM+FDLyD2 huOz2weFArP0OPq79vYITVQNrkyH9asMj/XLRQv9SSuHwvwFnvIE5ejcLSaUY+CBYqDg N9HQ== X-Gm-Message-State: APjAAAVD2QJNMA5mzJ1+IEVqlGu0/yHJsAImr48dDdd/XiJOnnoLWW2Z xHx2Bsoh4BCNbhQZmqKDjyG82V3N7p6sPSkUHkjuns/zo3PyQEl7hn9ThG7KK+IKw6GTS4Pgfus HxORIVMaWi7DqZw== X-Received: by 2002:adf:8068:: with SMTP id 95mr31940642wrk.249.1571131795857; Tue, 15 Oct 2019 02:29:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJpc0047jNrfzzHE3OYYcX2MfxO+nxCrg2aSdiQI6QiXY3NYPQim0pjPVRtKJkwDkH6/xkeQ== X-Received: by 2002:adf:8068:: with SMTP id 95mr31940626wrk.249.1571131795587; Tue, 15 Oct 2019 02:29:55 -0700 (PDT) Return-Path: Received: from [192.168.1.36] (14.red-88-21-201.staticip.rima-tde.net. [88.21.201.14]) by smtp.gmail.com with ESMTPSA id r13sm31079098wrn.0.2019.10.15.02.29.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Oct 2019 02:29:55 -0700 (PDT) Subject: Re: [edk2-devel] [Patch v2 08/11] CryptoPkg: Append options to make CLANG9 tool chain pass build To: devel@edk2.groups.io, liming.gao@intel.com References: <1571099210-12432-1-git-send-email-liming.gao@intel.com> <1571099210-12432-9-git-send-email-liming.gao@intel.com> From: =?UTF-8?B?UGhpbGlwcGUgTWF0aGlldS1EYXVkw6k=?= Message-ID: <219b8480-3f48-bc4f-0fda-91c56af96761@redhat.com> Date: Tue, 15 Oct 2019 11:29:54 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.0 MIME-Version: 1.0 In-Reply-To: <1571099210-12432-9-git-send-email-liming.gao@intel.com> X-MC-Unique: yfVLZsQxOGy5S4xsneBsgw-1 X-Mimecast-Spam-Score: 0 Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Hi Liming, On 10/15/19 2:26 AM, Liming Gao wrote: > 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-point= er-types > =20 > XCODE:*_*_*_CC_FLAGS =3D -std=3Dc99 > diff --git a/CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf b/CryptoPkg/L= ibrary/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-point= er-types > =20 > XCODE:*_*_*_CC_FLAGS =3D -std=3Dc99 > diff --git a/CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf b/CryptoP= kg/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-point= er-types > =20 > XCODE:*_*_*_CC_FLAGS =3D -std=3Dc99 > diff --git a/CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf b/CryptoPkg/L= ibrary/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-point= er-types > diff --git a/CryptoPkg/Library/OpensslLib/OpensslLib.inf b/CryptoPkg/Libr= ary/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-unin= itialized -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 -Wno= -error=3Dincompatible-pointer-types -Wno-error=3Dpointer-sign -Wno-error=3D= implicit-function-declaration -Wno-error=3Dignored-pragma-optimize What pragma optimization errors are you having with Clang9? > # 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/CryptoPk= g/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-unin= itialized -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 -Wno= -error=3Dincompatible-pointer-types -Wno-error=3Dpointer-sign -Wno-error=3D= implicit-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 >=20