IntelFsp2WrapperPkg/FspWrapperMultiPhaseProcessLib: Fix CLANGPDB build

Silences "sometimes-uninitialized" warning by initializing the variable FspMultiPhaseApiOffset and corrects build using LLVM 15 toolchain

Signed-off-by: Savva Mitrofanov <savvamtr@gmail.com>
This commit is contained in:
Savva Mitrofanov 2023-02-03 14:25:18 +06:00 committed by Mikhail Krichanov
parent 656cd26abc
commit 370c5f3399
1 changed files with 2 additions and 1 deletions

View File

@ -80,7 +80,8 @@ CallFspMultiPhaseEntry (
BOOLEAN IsVariableServiceRequest;
FSP_MULTI_PHASE_PARAMS *FspMultiPhaseParamsPtr;
FspMultiPhaseApiOffset = 0;
FspMultiPhaseApiOffset = 0;
FspMultiPhaseParamsPtr = (FSP_MULTI_PHASE_PARAMS *)FspMultiPhaseParams;
IsVariableServiceRequest = FALSE;
if ((FspMultiPhaseParamsPtr->MultiPhaseAction == EnumMultiPhaseGetVariableRequestInfo) ||