On 2/2/22 14:54, Rebecca Cran wrote:
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'
This looks like the same error that XCODE5 was complaining about. The
patch was submitted by Brijesh, but some CI failure occurred. I'm not sure
how that is possible from a one line patch like that, maybe it has
something to do with the file in general, excluding the patch?
Thanks,
Tom
--
Rebecca Cran
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#86346): https://edk2.groups.io/g/devel/message/86346
Mute This Topic: https://groups.io/mt/88869092/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-