qemu /
edk2 /
02c88f25f3626aa85545d73b8183e9e39e089ced DynamicTablesPkg: Fix used uninitialized warning from CLANG toolchains
The compiler is not spotting that the inverse of the same conditions has
already been checked, therefore either the 'if' or the 'else if' has to
happen. On the other hand, it is misleading coding to use 'else if' for
something that has to happen given earlier checks.
This fixes the misleading coding and the warning.
We definitely want to keep the warning enabled, as it has caught several
genuine cases of uninitialized use.
Signed-off-by: Mike Beaton <mjsbeaton@gmail.com>
1 file changed