From 9c65f0df230a3ed97b731940e0f18f4eadb5838c Mon Sep 17 00:00:00 2001 From: "Gromadzki, Tomasz" Date: Sat, 18 Mar 2023 10:51:43 +0100 Subject: [PATCH] fix patch file of Basic.h Signed-off-by: Gromadzki, Tomasz --- ...TIC_ASSERTs-and-NULL-define-for-os-and-ut-builds.patch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/os/patches/0001-Ignore-STATIC_ASSERTs-and-NULL-define-for-os-and-ut-builds.patch b/src/os/patches/0001-Ignore-STATIC_ASSERTs-and-NULL-define-for-os-and-ut-builds.patch index 1993e023..0f6ccb2a 100644 --- a/src/os/patches/0001-Ignore-STATIC_ASSERTs-and-NULL-define-for-os-and-ut-builds.patch +++ b/src/os/patches/0001-Ignore-STATIC_ASSERTs-and-NULL-define-for-os-and-ut-builds.patch @@ -41,15 +41,15 @@ index 2da08b0c78..072eefdb94 100644 // // The following three enum types are used to verify that the compiler -@@ -812,9 +820,13 @@ typedef enum { - __VerifyUint32EnumValue = 0xffffffff - } __VERIFY_UINT32_ENUM_SIZE; +@@ -812,9 +820,13 @@ + __VerifyInt32EnumValue = 0x7fffffff + } __VERIFY_INT32_ENUM_SIZE; +#ifndef OS_BUILD +#ifndef UNIT_TEST_UEFI_BUILD STATIC_ASSERT (sizeof (__VERIFY_UINT8_ENUM_SIZE) == 4, "Size of enum does not meet UEFI Specification Data Type requirements"); STATIC_ASSERT (sizeof (__VERIFY_UINT16_ENUM_SIZE) == 4, "Size of enum does not meet UEFI Specification Data Type requirements"); - STATIC_ASSERT (sizeof (__VERIFY_UINT32_ENUM_SIZE) == 4, "Size of enum does not meet UEFI Specification Data Type requirements"); + STATIC_ASSERT (sizeof (__VERIFY_INT32_ENUM_SIZE) == 4, "Size of enum does not meet UEFI Specification Data Type requirements"); +#endif +#endif