From 8ee217afbc12fc5ffb6b860996cb88633c71400f Mon Sep 17 00:00:00 2001 From: vit9696 Date: Sun, 4 Oct 2020 07:06:23 +0300 Subject: [PATCH] OcSerializeLib: Fix potential compiler warning --- Library/OcSerializeLib/OcSerializeLib.c | 4 ++++ Platform/OpenCanopy/OpenCanopy.c | 6 +++--- Platform/OpenCanopy/OpenCanopy.h | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Library/OcSerializeLib/OcSerializeLib.c b/Library/OcSerializeLib/OcSerializeLib.c index 343c920a..7a5476a1 100644 --- a/Library/OcSerializeLib/OcSerializeLib.c +++ b/Library/OcSerializeLib/OcSerializeLib.c @@ -20,6 +20,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include #include +#if !defined(MDEPKG_NDEBUG) + STATIC CONST CHAR8 * mSchemaTypeNames[] = { @@ -42,6 +44,8 @@ GetSchemaTypeName ( return "custom"; } +#endif + OC_SCHEMA * LookupConfigSchema ( IN OC_SCHEMA *SortedList, diff --git a/Platform/OpenCanopy/OpenCanopy.c b/Platform/OpenCanopy/OpenCanopy.c index af76bc27..92091fb5 100644 --- a/Platform/OpenCanopy/OpenCanopy.c +++ b/Platform/OpenCanopy/OpenCanopy.c @@ -956,7 +956,7 @@ GuiRedrawAndFlushScreen ( EFI_STATUS GuiLibConstruct ( - IN OC_PICKER_CONTEXT *PickerContet, + IN OC_PICKER_CONTEXT *PickerContext, IN UINT32 CursorDefaultX, IN UINT32 CursorDefaultY ) @@ -976,7 +976,7 @@ GuiLibConstruct ( CursorDefaultY = MIN (CursorDefaultY, OutputInfo->VerticalResolution - 1); mPointerContext = GuiPointerConstruct ( - PickerContet, + PickerContext, CursorDefaultX, CursorDefaultY, OutputInfo->HorizontalResolution, @@ -986,7 +986,7 @@ GuiLibConstruct ( DEBUG ((DEBUG_WARN, "OCUI: Failed to initialise pointer\n")); } - mKeyContext = GuiKeyConstruct (PickerContet); + mKeyContext = GuiKeyConstruct (PickerContext); if (mKeyContext == NULL) { DEBUG ((DEBUG_WARN, "OCUI: Failed to initialise key input\n")); } diff --git a/Platform/OpenCanopy/OpenCanopy.h b/Platform/OpenCanopy/OpenCanopy.h index 19b9a7a5..8a0e411b 100644 --- a/Platform/OpenCanopy/OpenCanopy.h +++ b/Platform/OpenCanopy/OpenCanopy.h @@ -264,7 +264,7 @@ GuiClearScreen ( EFI_STATUS GuiLibConstruct ( - IN OC_PICKER_CONTEXT *PickerContet, + IN OC_PICKER_CONTEXT *PickerContext, IN UINT32 CursorDefaultX, IN UINT32 CursorDefaultY ); -- GitLab