summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python/Workspace/MetaFileParser.py
diff options
context:
space:
mode:
authorRichard Lyu <richard.lyu@suse.com>2026-09-04 04:46:57 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2026-09-08 14:28:40 +0300
commit583876be29dfa2b7eff4b801557e361c0839671d (patch)
treec86c569b6c238b160f5687937b12ab07fd937fd4 /BaseTools/Source/Python/Workspace/MetaFileParser.py
parenta4610f9cfef179f2013156da9768039f52519f04 (diff)
downloadedk2-583876be29dfa2b7eff4b801557e361c0839671d.tar.xz
OvmfPkg/RiscVVirt/PlatformPei: Initialize TpmBase
Building RiscVVirtQemu with GCC fails with -Werror=maybe-uninitialized. SetupTPMResources() only assigns TpmBase inside the "Len == 8" and "Len == 16" branches that decode the TPM 'reg' property, and the preceding ASSERT() is not a control flow guarantee for the compiler: PlatformPeim.c:192:23: error: 'TpmBase' may be used uninitialized [-Werror=maybe-uninitialized] 192 | TpmBase -= Fdt64ToCpu (ReadUnaligned64 ((UINT64 *)RangesProp)); | ^~ Initialize TpmBase next to the existing TpmBaseSize initialization, purely to satisfy the compiler. Signed-off-by: Richard Lyu <richard.lyu@suse.com>
Diffstat (limited to 'BaseTools/Source/Python/Workspace/MetaFileParser.py')
0 files changed, 0 insertions, 0 deletions