audk/ArmVirtPkg/Library
Ard Biesheuvel f52b30e73d ArmVirtPkg/PlatformPeiLib: add dummy assignment to work around older GCC
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: 82662a3b5f ("ArmVirtPkg/PlatformPeiLib: discover the TPM base ...")
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
2020-03-26 08:09:53 +00:00
..
ArmVirtDxeHobLib ArmVirtPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:21 -07:00
ArmVirtGicArchLib ArmVirtPkg: fix ASSERT in ArmVirtGicArchLib with virtualization=on 2020-03-17 15:06:11 +00:00
ArmVirtMemoryInitPeiLib ArmVirtPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:21 -07:00
ArmVirtPL031FdtClientLib ArmVirtPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:21 -07:00
ArmVirtPsciResetSystemLib ArmVirtPkg: remove EnterS3WithImmediateWake () from ResetSystemLib 2020-01-10 07:00:51 +00:00
ArmVirtPsciResetSystemPeiLib ArmVirtPkg: implement ArmVirtPsciResetSystemPeiLib 2020-03-04 08:48:09 +00:00
ArmVirtTimerFdtClientLib ArmVirtPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:21 -07:00
BaseCachingPciExpressLib ArmVirtPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:21 -07:00
FdtPL011SerialPortLib ArmVirtPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:21 -07:00
FdtPciHostBridgeLib ArmVirtPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:21 -07:00
FdtPciPcdProducerLib ArmVirtPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:21 -07:00
NorFlashQemuLib ArmVirtPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:21 -07:00
PlatformBootManagerLib ArmVirtPkg/PlatformBootManagerLib: switch to separate QEMU loader 2020-03-05 19:45:05 +00:00
PlatformPeiLib ArmVirtPkg/PlatformPeiLib: add dummy assignment to work around older GCC 2020-03-26 08:09:53 +00:00
QemuFwCfgLib ArmVirtPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:21 -07:00
QemuVirtMemInfoLib ArmVirtPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:21 -07:00
XenArmGenericTimerVirtCounterLib ArmVirtPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:21 -07:00
XenVirtMemInfoLib ArmVirtPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:21 -07:00