diff --git a/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c b/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c index dbebd36b18..d3bf75498d 100644 --- a/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c +++ b/OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c @@ -82,6 +82,11 @@ InternalQemuFwCfgDmaBytes ( return; } + // + // set NumPages to suppress incorrect compiler/analyzer warnings + // + NumPages = 0; + // // When SEV is enabled then allocate DMA bounce buffer //