* Building OvmfPkgX64.dsc with XCODE5 (Apple clang 12.0.5) fails in VmgExitLib
@ 2021-12-13 17:48 Rebecca Cran
2021-12-13 19:29 ` Brijesh Singh
0 siblings, 1 reply; 2+ messages in thread
From: Rebecca Cran @ 2021-12-13 17:48 UTC (permalink / raw)
To: devel@edk2.groups.io, Jiewen Yao, Jordan Justen, Gerd Hoffmann,
Brijesh Singh, Erdem Aktas, Min Xu, Tom Lendacky
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'
--
Rebecca Cran
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Building OvmfPkgX64.dsc with XCODE5 (Apple clang 12.0.5) fails in VmgExitLib
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
0 siblings, 0 replies; 2+ messages in thread
From: Brijesh Singh @ 2021-12-13 19:29 UTC (permalink / raw)
To: Rebecca Cran, devel@edk2.groups.io, Jiewen Yao, Jordan Justen,
Gerd Hoffmann, Erdem Aktas, Min Xu, Tom Lendacky
Cc: brijesh.singh
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-13 19:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox