From: Michael Kinney Date: Tue, 23 May 2017 19:03:39 +0000 (-0700) Subject: MdeModulePkg/RegularExpressionDxe: Fix XCODE5 build failure X-Git-Tag: edk2-stable201903~3992 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=c8206f22fd2fb6e72c291304d38d8d1ddee732ce MdeModulePkg/RegularExpressionDxe: Fix XCODE5 build failure https://bugzilla.tianocore.org/show_bug.cgi?id=572 The ErrorMessage local variable in OnigurumaMatch() should be type OnigUChar instead of type CHAR8. This resolves a build failure with the XCODE5 tool chain. Cc: Andrew Fish Cc: Star Zeng Cc: Eric Dong Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael D Kinney Reviewed-by: Andrew Fish Reviewed-by: Star Zeng --- diff --git a/MdeModulePkg/Universal/RegularExpressionDxe/RegularExpressionDxe.c b/MdeModulePkg/Universal/RegularExpressionDxe/RegularExpressionDxe.c index a5ee7d52fd..cf325fced7 100644 --- a/MdeModulePkg/Universal/RegularExpressionDxe/RegularExpressionDxe.c +++ b/MdeModulePkg/Universal/RegularExpressionDxe/RegularExpressionDxe.c @@ -88,7 +88,7 @@ OnigurumaMatch ( OnigRegion *Region; INT32 OnigResult; OnigErrorInfo ErrorInfo; - CHAR8 ErrorMessage[ONIG_MAX_ERROR_MESSAGE_LEN]; + OnigUChar ErrorMessage[ONIG_MAX_ERROR_MESSAGE_LEN]; UINT32 Index; OnigUChar *Start; EFI_STATUS Status;