diff options
author | Zhichao Gao <zhichao.gao@intel.com> | 2019-04-24 11:26:55 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2019-04-28 10:54:27 +0800 |
commit | ffe48f4b6c65cf573ec9aa69c14f294b8940aa1c (patch) | |
tree | 5e4966ec69788dcb62370cecde78e172a887b8ba | |
parent | 7eef381378b7b1f50c9a0f98b786ea3c71ec0a8c (diff) | |
download | edk2-ffe48f4b6c65cf573ec9aa69c14f294b8940aa1c.tar.gz edk2-ffe48f4b6c65cf573ec9aa69c14f294b8940aa1c.tar.bz2 edk2-ffe48f4b6c65cf573ec9aa69c14f294b8940aa1c.zip |
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 <lersek@redhat.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Dandan Bi <dandan.bi@intel.com>
Signed-off-by: Zhichao Gao <zhichao.gao@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
-rw-r--r-- | MdePkg/Library/UefiDebugLibStdErr/DebugLibConstructor.c | 2 |
1 files changed, 1 insertions, 1 deletions
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
|