Skip to content

Commit

Permalink
IntelFsp2WrapperPkg: Add variable initialization
Browse files Browse the repository at this point in the history
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4595

Fix build error when remove "-Wno-sometimes-uninitialized" option,
Add variable "FspMultiPhaseApiOffset" initialization.

Cc: Nate DeSimone <[email protected]>
Cc: Star Zeng <[email protected]>
Cc: Chasel Chiu <[email protected]>
Cc: Duggapu Chinni B <[email protected]>
Cc: Ted Kuo <[email protected]>
Cc: Susovan Mohapatra <[email protected]>
Cc: James Lu <[email protected]>
Reviewed-by: Ashraf Ali S <[email protected]>
Reviewed-by: Chen Gang C <[email protected]>
Reviewed-by: Gua Guo <[email protected]>
Signed-off-by: Jason Hsu <[email protected]>
  • Loading branch information
yunhsiax authored and mergify[bot] committed Nov 9, 2023
1 parent bb18fb8 commit 616f0d5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ CallFspMultiPhaseEntry (
BOOLEAN IsVariableServiceRequest;
FSP_MULTI_PHASE_PARAMS *FspMultiPhaseParamsPtr;

FspMultiPhaseApiOffset = 0;
FspMultiPhaseParamsPtr = (FSP_MULTI_PHASE_PARAMS *)FspMultiPhaseParams;
IsVariableServiceRequest = FALSE;
if ((FspMultiPhaseParamsPtr->MultiPhaseAction == EnumMultiPhaseGetVariableRequestInfo) ||
Expand Down

0 comments on commit 616f0d5

Please sign in to comment.