mirror of https://github.com/acidanthera/audk.git
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:
parent
0d85e67714
commit
a9521a6bf4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue