public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* OvmfPkg VmgExitLib fails to build with CLANG38 (clang 13.0.0)
@ 2022-02-02 20:54 Rebecca Cran
  2022-02-02 21:16 ` Lendacky, Thomas
  0 siblings, 1 reply; 4+ messages in thread
From: Rebecca Cran @ 2022-02-02 20:54 UTC (permalink / raw)
  To: Brijesh Singh, Erdem Aktas, James Bottomley, Jiewen Yao, Min Xu,
	Tom Lendacky, edk2-devel-groups-io

[-- 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 --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-02-04 15:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-02 20:54 OvmfPkg VmgExitLib fails to build with CLANG38 (clang 13.0.0) Rebecca Cran
2022-02-02 21:16 ` Lendacky, Thomas
2022-02-03  0:16   ` [edk2-devel] " Rebecca Cran
2022-02-04 15:53     ` Brijesh Singh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox