From: "Rebecca Cran" <quic_rcran@quicinc.com>
To: Brijesh Singh <brijesh.singh@amd.com>,
Erdem Aktas <erdemaktas@google.com>,
James Bottomley <jejb@linux.ibm.com>,
Jiewen Yao <jiewen.yao@intel.com>, Min Xu <min.m.xu@intel.com>,
Tom Lendacky <thomas.lendacky@amd.com>,
edk2-devel-groups-io <devel@edk2.groups.io>
Subject: OvmfPkg VmgExitLib fails to build with CLANG38 (clang 13.0.0)
Date: Wed, 2 Feb 2022 13:54:29 -0700 [thread overview]
Message-ID: <facfe770-eebf-e5c4-ef6c-5959b4524a01@quicinc.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 977 bytes --]
VmgExitLib fails to build with the CLANG38 toolset (clang 13.0.0):
edk2/OvmfPkg/Library/VmgExitLib/VmgExitVcHandler.c:1875:9: error:
variable 'Compacted' is used uninitialized whenever 'if' condition is
false [-Werror,-W
sometimes-uninitialized]
if (EcxIn == 1) {
^~~~~~~~~~
edk2/OvmfPkg/Library/VmgExitLib/VmgExitVcHandler.c:1895:12: note:
uninitialized use occurs here
Compacted
^~~~~~~~~
edk2/OvmfPkg/Library/VmgExitLib/VmgExitVcHandler.c:1875:5: note: remove
the 'if' if its condition is always true
if (EcxIn == 1) {
^~~~~~~~~~~~~~~~
edk2/OvmfPkg/Library/VmgExitLib/VmgExitVcHandler.c:1871:37: note:
initialize the variable 'Compacted' to silence this warning
BOOLEAN Compacted;
^
= '\0'
--
Rebecca Cran
[-- Attachment #2: Type: text/html, Size: 1665 bytes --]
next reply other threads:[~2022-02-02 20:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-02 20:54 Rebecca Cran [this message]
2022-02-02 21:16 ` OvmfPkg VmgExitLib fails to build with CLANG38 (clang 13.0.0) Lendacky, Thomas
2022-02-03 0:16 ` [edk2-devel] " Rebecca Cran
2022-02-04 15:53 ` Brijesh Singh
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=facfe770-eebf-e5c4-ef6c-5959b4524a01@quicinc.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