Skip to content

Commit

Permalink
MdeModulePkg/ResetUtilityLib: Use STATIC_ASSERT macro
Browse files Browse the repository at this point in the history
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2048

Use new STATIC_ASSERT macro instead of VERIFY_SIZE_OF.

Signed-off-by: Vitaly Cheptsov <[email protected]>
Reviewed-by: Liming Gao <[email protected]>
Reviewed-by: Zhichao Gao <[email protected]>
Reviewed-by: Hao A Wu <[email protected]>
  • Loading branch information
Vitaly Cheptsov via Groups.Io authored and lgao4 committed Sep 17, 2019
1 parent 0d85e67 commit a9521a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion MdeModulePkg/Library/ResetUtilityLib/ResetUtility.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ typedef struct {
} RESET_UTILITY_GUID_SPECIFIC_RESET_DATA;
#pragma pack()

VERIFY_SIZE_OF (RESET_UTILITY_GUID_SPECIFIC_RESET_DATA, 18);
STATIC_ASSERT (
sizeof (RESET_UTILITY_GUID_SPECIFIC_RESET_DATA) == 18,
"sizeof (RESET_UTILITY_GUID_SPECIFIC_RESET_DATA) is expected to be 18 bytes"
);

/**
This is a shorthand helper function to reset with reset type and a subtype
Expand Down

0 comments on commit a9521a6

Please sign in to comment.