]> git.proxmox.com Git - mirror_edk2.git/commit
UefiCpuPkg/PiSmmCpuDxeSmm: Fix build failure for VS2012 and GCC49.
authorEric Dong <eric.dong@intel.com>
Thu, 25 Oct 2018 02:12:52 +0000 (10:12 +0800)
committerEric Dong <eric.dong@intel.com>
Fri, 26 Oct 2018 03:28:37 +0000 (11:28 +0800)
commit7db4034f9ac578f1d834ff5ad062b8982ec81137
tree3a3aa2d9f923d52ffbf147e16d5067a51d32ec75
parent31fb333431da1dfdd49ed4e12a7866e467a17030
UefiCpuPkg/PiSmmCpuDxeSmm: Fix build failure for VS2012 and GCC49.

Code initialized in function can't be correctly detected by build tool.
Add code to clearly initialize the local variable before use it.

Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Dandan Bi <dandan.bi@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
UefiCpuPkg/PiSmmCpuDxeSmm/CpuS3.c