The BOOLEAN IsFinal variable initialization isn't properly made by
MSVC, to make it compile OVMF the variable needs to be initialized.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Mauro Faccenda <faccenda <at> gmail.com>
---
Index: OvmfPkg/Library/PlatformBdsLib/QemuBootOrder.c
===================================================================
--- OvmfPkg/Library/PlatformBdsLib/QemuBootOrder.c (revision 15211)
+++ OvmfPkg/Library/PlatformBdsLib/QemuBootOrder.c (working copy)
@@ -872,6 +872,7 @@
   BOOLEAN       IsFinal;
   OFW_NODE      Skip;

+  IsFinal = FALSE;
   NumNodes = 0;
   if (AsciiStrCmp (*Ptr, "HALT") == 0) {
     *Ptr += 4;
---

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to