]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/PlatformPei: suppress wrong VS2008 warning (use of uninited local)
authorLaszlo Ersek <lersek@redhat.com>
Fri, 18 Mar 2016 23:08:47 +0000 (00:08 +0100)
committerLaszlo Ersek <lersek@redhat.com>
Sat, 19 Mar 2016 01:24:47 +0000 (02:24 +0100)
commit02d6f4ce0c84f2d7e9abfcde2e092a5701ff33c4
treec16fbb25cdca54bb672adc5ed1c8d5f466629541
parent58f025afd52a294d2482cd01eb4752d222918461
OvmfPkg/PlatformPei: suppress wrong VS2008 warning (use of uninited local)

VS2008 seems to think that the "PciExBarBase" variable (introduced in
commit 7b8fe63561b4) can be evaluated for the
AddReservedMemoryBaseSizeHob() function call with its value being
uninitialized / indeterminate. This is not the case (see
"mHostBridgeDevId"); suppress the warning.

Reported-by: David Woodhouse <dwmw2@infradead.org>
Ref: http://thread.gmane.org/gmane.comp.bios.edk2.devel/8871/focus=9431
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: David Woodhouse <David.Woodhouse@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
OvmfPkg/PlatformPei/Platform.c