audk/ArmVirtPkg
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
..
FdtClientDxe ArmVirtPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:21 -07:00
HighMemDxe ArmVirtPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:21 -07:00
Include ArmVirtPkg: convert LFs to CRLF 2020-03-04 12:22:07 +00:00
Library ArmVirtPkg/PlatformPeiLib: add dummy assignment to work around older GCC 2020-03-26 08:09:53 +00:00
PlatformHasAcpiDtDxe ArmVirtPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:21 -07:00
PrePi ArmVirtPkg/ArmVirtPrePiUniCoreRelocatable: revert to PIE linking 2019-09-05 10:05:08 -07:00
VirtioFdtDxe ArmVirtPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:21 -07:00
XenAcpiPlatformDxe ArmVirtPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:21 -07:00
XenPlatformHasAcpiDtDxe ArmVirtPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:21 -07:00
XenioFdtDxe ArmVirtPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:21 -07:00
ArmVirt.dsc.inc ArmVirtPkg: add the 'initrd' dynamic shell command 2020-03-04 09:26:45 +00:00
ArmVirtPkg.dec ArmVirtPkg/PlatformPeiLib: discover the TPM base address from the DT 2020-03-04 08:48:09 +00:00
ArmVirtQemu.dsc ArmVirtPkg: incorporate the new QEMU kernel loader driver and library 2020-03-05 19:45:05 +00:00
ArmVirtQemu.fdf ArmVirtPkg/ArmVirtQemu: enable TPM2 support in the PEI phase 2020-03-04 08:48:09 +00:00
ArmVirtQemuFvMain.fdf.inc ArmVirtPkg: incorporate the new QEMU kernel loader driver and library 2020-03-05 19:45:05 +00:00
ArmVirtQemuKernel.dsc ArmVirtPkg: incorporate the new QEMU kernel loader driver and library 2020-03-05 19:45:05 +00:00
ArmVirtQemuKernel.fdf ArmVirtPkg: increase FD/FV size for NOOPT builds 2019-09-13 14:25:33 +01:00
ArmVirtRules.fdf.inc ArmVirtPkg: Update UefiDecompressLib instance 2019-04-10 14:11:48 +08:00
ArmVirtXen.dsc ArmVirtPkg: unshare TpmMeasurementLib resolution between platforms 2020-03-04 08:48:09 +00:00
ArmVirtXen.fdf ArmVirtPkg: add the 'initrd' dynamic shell command 2020-03-04 09:26:45 +00:00
VarStore.fdf.inc ArmVirtPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:21 -07:00