From ffe48f4b6c65cf573ec9aa69c14f294b8940aa1c Mon Sep 17 00:00:00 2001 From: Zhichao Gao Date: Wed, 24 Apr 2019 11:26:55 +0800 Subject: [PATCH] MdePkg/UefiDebugLibStdErr: make global variable static REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1740 Add a 'static' storage-class specifier to the global variables that only used in a single file to minimize the name collisions. This is only for the variable named 'mExitBootServicesEvent'. Cc: Laszlo Ersek Cc: Michael D Kinney Cc: Liming Gao Cc: Dandan Bi Signed-off-by: Zhichao Gao Reviewed-by: Laszlo Ersek Reviewed-by: Liming Gao --- MdePkg/Library/UefiDebugLibStdErr/DebugLibConstructor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdePkg/Library/UefiDebugLibStdErr/DebugLibConstructor.c b/MdePkg/Library/UefiDebugLibStdErr/DebugLibConstructor.c index d4fdfbab55..8005370372 100644 --- a/MdePkg/Library/UefiDebugLibStdErr/DebugLibConstructor.c +++ b/MdePkg/Library/UefiDebugLibStdErr/DebugLibConstructor.c @@ -17,7 +17,7 @@ // BOOLEAN mPostEBS = FALSE; -EFI_EVENT mExitBootServicesEvent; +static EFI_EVENT mExitBootServicesEvent; // // Pointer to SystemTable