From b0537818290619c85993136877afae37492fe5e0 Mon Sep 17 00:00:00 2001 From: mdkinney Date: Tue, 19 Sep 2006 19:01:18 +0000 Subject: [PATCH] Add GLOBAL_REMOVE_IF_REFERENCED to the declaration of module globals in the Print Library that were still present in the final image even through there were no references to those module globals. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1566 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/BasePrintLib/PrintLib.c | 2 +- MdePkg/Library/BasePrintLib/PrintLibInternal.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MdePkg/Library/BasePrintLib/PrintLib.c b/MdePkg/Library/BasePrintLib/PrintLib.c index 455fd60526..a5104c75a3 100644 --- a/MdePkg/Library/BasePrintLib/PrintLib.c +++ b/MdePkg/Library/BasePrintLib/PrintLib.c @@ -19,7 +19,7 @@ #define WARNING_STATUS_NUMBER 4 #define ERROR_STATUS_NUMBER 24 -STATIC CONST CHAR8 *StatusString [] = { +GLOBAL_REMOVE_IF_UNREFERENCED CONST CHAR8 *StatusString [] = { "Success", // RETURN_SUCCESS = 0 "Warning Unknown Glyph", // RETURN_WARN_UNKNOWN_GLYPH = 1 "Warning Delete Failure", // RETURN_WARN_DELETE_FAILURE = 2 diff --git a/MdePkg/Library/BasePrintLib/PrintLibInternal.c b/MdePkg/Library/BasePrintLib/PrintLibInternal.c index a52e1d4a6a..3d2f2952f9 100644 --- a/MdePkg/Library/BasePrintLib/PrintLibInternal.c +++ b/MdePkg/Library/BasePrintLib/PrintLibInternal.c @@ -16,7 +16,7 @@ #include "PrintLibInternal.h" -static CONST CHAR8 mHexStr[] = {'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'}; +GLOBAL_REMOVE_IF_UNREFERENCED CONST CHAR8 mHexStr[] = {'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'}; /** -- 2.39.2