From 7eef381378b7b1f50c9a0f98b786ea3c71ec0a8c Mon Sep 17 00:00:00 2001 From: Zhichao Gao Date: Wed, 24 Apr 2019 11:26:00 +0800 Subject: MdePkg/UefiDebugLibDebugPortProtocol: 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/UefiDebugLibDebugPortProtocol/DebugLibConstructor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'MdePkg') diff --git a/MdePkg/Library/UefiDebugLibDebugPortProtocol/DebugLibConstructor.c b/MdePkg/Library/UefiDebugLibDebugPortProtocol/DebugLibConstructor.c index ed2cb70c21..de60d339a8 100644 --- a/MdePkg/Library/UefiDebugLibDebugPortProtocol/DebugLibConstructor.c +++ b/MdePkg/Library/UefiDebugLibDebugPortProtocol/DebugLibConstructor.c @@ -17,7 +17,7 @@ // BOOLEAN mPostEBS = FALSE; -EFI_EVENT mExitBootServicesEvent; +static EFI_EVENT mExitBootServicesEvent; // // Pointer to SystemTable -- cgit v1.2.3