diff options
| author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2020-03-25 12:30:07 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-03-26 11:09:53 +0300 |
| commit | f52b30e73ddee9a3a609a6e5aa87e79cf4f50879 (patch) | |
| tree | 1b02238794b1371efa5154cd597bf163765838b7 /BaseTools/Source/Python/CommonDataClass/Exceptions.py | |
| parent | 92a1ac40809e0886ac5c53864993e268b515674c (diff) | |
| download | edk2-f52b30e73ddee9a3a609a6e5aa87e79cf4f50879.tar.xz | |
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: 82662a3b5f56e974 ("ArmVirtPkg/PlatformPeiLib: discover the TPM base ...")
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'BaseTools/Source/Python/CommonDataClass/Exceptions.py')
0 files changed, 0 insertions, 0 deletions
