From: "Brijesh Singh" <brijesh.singh@amd.com>
To: Rebecca Cran <rebecca@bsdio.com>,
"devel@edk2.groups.io" <devel@edk2.groups.io>,
Jiewen Yao <jiewen.yao@intel.com>,
Jordan Justen <jordan.l.justen@intel.com>,
Gerd Hoffmann <kraxel@redhat.com>,
Erdem Aktas <erdemaktas@google.com>, Min Xu <min.m.xu@intel.com>,
Tom Lendacky <thomas.lendacky@amd.com>
Cc: brijesh.singh@amd.com
Subject: Re: Building OvmfPkgX64.dsc with XCODE5 (Apple clang 12.0.5) fails in VmgExitLib
Date: Mon, 13 Dec 2021 13:29:15 -0600 [thread overview]
Message-ID: <6afe4adf-928e-d1f8-c3dc-7d174ef9c73e@amd.com> (raw)
In-Reply-To: <d9d1af91-3878-1ccd-e077-c529c94eefba@bsdio.com>
On 12/13/21 11:48 AM, Rebecca Cran wrote:
> I tried building OvmfPkg/OvmfPkgX64.dsc with XCODE5 (with Apple Clang
> 12.0.5 from XCode 13.1) and it failed with the following error:
>
>
> /Users/bcran/src/uefi/edk2/OvmfPkg/Library/VmgExitLib/VmgExitVcHandler.c:1875:9:
> error: variable 'Compacted' is used uninitialized whenever 'if'
> condition is false [-Werror,-Wsometimes-uninitialized]
> if (EcxIn == 1) {
> ^~~~~~~~~~
> /Users/bcran/src/uefi/edk2/OvmfPkg/Library/VmgExitLib/VmgExitVcHandler.c:1895:12:
> note: uninitialized use occurs here
> Compacted
> ^~~~~~~~~
> /Users/bcran/src/uefi/edk2/OvmfPkg/Library/VmgExitLib/VmgExitVcHandler.c:1875:5:
> note: remove the 'if' if its condition is always true
> if (EcxIn == 1) {
> ^~~~~~~~~~~~~~~~
> /Users/bcran/src/uefi/edk2/OvmfPkg/Library/VmgExitLib/VmgExitVcHandler.c:1871:37:
> note: initialize the variable 'Compacted' to silence this warning
> BOOLEAN Compacted;
> ^
> = '\0'
>
Thanks for reporting, I will submit a patch sooner to resolve this warning.
-Brijesh
prev parent reply other threads:[~2021-12-13 19:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-13 17:48 Building OvmfPkgX64.dsc with XCODE5 (Apple clang 12.0.5) fails in VmgExitLib Rebecca Cran
2021-12-13 19:29 ` Brijesh Singh [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6afe4adf-928e-d1f8-c3dc-7d174ef9c73e@amd.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox