diff options
author | Laszlo Ersek <lersek@redhat.com> | 2016-03-19 00:08:47 +0100 |
---|---|---|
committer | Laszlo Ersek <lersek@redhat.com> | 2016-03-19 02:24:47 +0100 |
commit | 02d6f4ce0c84f2d7e9abfcde2e092a5701ff33c4 (patch) | |
tree | c16fbb25cdca54bb672adc5ed1c8d5f466629541 /OvmfPkg | |
parent | 58f025afd52a294d2482cd01eb4752d222918461 (diff) | |
download | edk2-platforms-02d6f4ce0c84f2d7e9abfcde2e092a5701ff33c4.tar.xz |
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>
Diffstat (limited to 'OvmfPkg')
-rw-r--r-- | OvmfPkg/PlatformPei/Platform.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/OvmfPkg/PlatformPei/Platform.c b/OvmfPkg/PlatformPei/Platform.c index 0fc227803a..509343e0be 100644 --- a/OvmfPkg/PlatformPei/Platform.c +++ b/OvmfPkg/PlatformPei/Platform.c @@ -217,6 +217,7 @@ MemMapInitialization ( UINT32 PciSize;
TopOfLowRam = GetSystemMemorySizeBelow4gb ();
+ PciExBarBase = 0;
if (mHostBridgeDevId == INTEL_Q35_MCH_DEVICE_ID) {
//
// The MMCONFIG area is expected to fall between the top of low RAM and
|