MdeModulePkg/ResetUtilityLib: Use STATIC_ASSERT macro

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 <vit9696@protonmail.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
This commit is contained in:
Vitaly Cheptsov via Groups.Io 2019-08-17 07:58:10 +08:00 committed by Liming Gao
parent 0d85e67714
commit a9521a6bf4
1 changed files with 4 additions and 1 deletions

View File

@ -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