diff options
| author | Richard Lyu <richard.lyu@suse.com> | 2026-09-04 09:46:57 +0800 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2026-09-08 11:28:40 +0000 |
| commit | 583876be29dfa2b7eff4b801557e361c0839671d (patch) | |
| tree | c86c569b6c238b160f5687937b12ab07fd937fd4 /SourceLevelDebugPkg | |
| parent | a4610f9cfef179f2013156da9768039f52519f04 (diff) | |
| download | edk2-master.tar.gz edk2-master.zip | |
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 'SourceLevelDebugPkg')
0 files changed, 0 insertions, 0 deletions
