mirror of https://github.com/acidanthera/audk.git
f52b30e73d
Older GCC (<= 4.9) fail to infer that Parent is never used unless it
has been assigned before, and may throw an error like
/work/git/edk2/ArmVirtPkg/Library/PlatformPeiLib/PlatformPeiLib.c:
In function ‘PlatformPeim’:
/work/git/edk2/ArmVirtPkg/Library/PlatformPeiLib/PlatformPeiLib.c:132:24:
error: ‘Parent’ may be used uninitialized in this function
[-Werror=maybe-uninitialized]
RangesProp = fdt_getprop (Base, Parent, "ranges", &RangesLen);
Set Parent to 0 at the start of the sequence to work around this.
Link: https://bugzilla.tianocore.org/show_bug.cgi?id=2601
Fixes:
|
||
---|---|---|
.. | ||
FdtClientDxe | ||
HighMemDxe | ||
Include | ||
Library | ||
PlatformHasAcpiDtDxe | ||
PrePi | ||
VirtioFdtDxe | ||
XenAcpiPlatformDxe | ||
XenPlatformHasAcpiDtDxe | ||
XenioFdtDxe | ||
ArmVirt.dsc.inc | ||
ArmVirtPkg.dec | ||
ArmVirtQemu.dsc | ||
ArmVirtQemu.fdf | ||
ArmVirtQemuFvMain.fdf.inc | ||
ArmVirtQemuKernel.dsc | ||
ArmVirtQemuKernel.fdf | ||
ArmVirtRules.fdf.inc | ||
ArmVirtXen.dsc | ||
ArmVirtXen.fdf | ||
VarStore.fdf.inc |