diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2020-03-06 08:34:24 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-03-08 19:45:39 +0000 |
commit | 40d572f70dc10cbacb331c1f0757000195656087 (patch) | |
tree | 31ce6b7f600689d7224a9df8808ab51f5a2dd819 /BaseTools/Source/Python/CommonDataClass | |
parent | 80681884319d7ad45987348d30bae60cd3a43afb (diff) | |
download | edk2-40d572f70dc10cbacb331c1f0757000195656087.tar.gz edk2-40d572f70dc10cbacb331c1f0757000195656087.tar.bz2 edk2-40d572f70dc10cbacb331c1f0757000195656087.zip |
OvmfPkg/QemuKernelLoaderFsDxe: drop tentative const object definition
Bob reports that VS2017 chokes on a tentative definition of the const
object 'mEfiFileProtocolTemplate', with the following error:
OvmfPkg\QemuKernelLoaderFsDxe\QemuKernelLoaderFsDxe.c(130):
error C2220: warning treated as error - no 'object' file generated
OvmfPkg\QemuKernelLoaderFsDxe\QemuKernelLoaderFsDxe.c(130):
warning C4132: 'mEfiFileProtocolTemplate': const object should be initialized
Let's turn the only function that relies on this tentative definition
into a forward declaration itself, and move its definition after the
external definition of the object. That allows us to drop the tentative
definition of the const object, and hopefully make VS2017 happy.
Cc: "Feng, Bob C" <bob.c.feng@intel.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'BaseTools/Source/Python/CommonDataClass')
0 files changed, 0 insertions, 0 deletions