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:
|
||
---|---|---|
.. | ||
ArmVirtDxeHobLib | ||
ArmVirtGicArchLib | ||
ArmVirtMemoryInitPeiLib | ||
ArmVirtPL031FdtClientLib | ||
ArmVirtPsciResetSystemLib | ||
ArmVirtPsciResetSystemPeiLib | ||
ArmVirtTimerFdtClientLib | ||
BaseCachingPciExpressLib | ||
FdtPL011SerialPortLib | ||
FdtPciHostBridgeLib | ||
FdtPciPcdProducerLib | ||
NorFlashQemuLib | ||
PlatformBootManagerLib | ||
PlatformPeiLib | ||
QemuFwCfgLib | ||
QemuVirtMemInfoLib | ||
XenArmGenericTimerVirtCounterLib | ||
XenVirtMemInfoLib |