The GCC parameter -Wno-missing-braces was recently removed. This
caused build warnings where structures were instantiated without
proper brace usage.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.jus...@intel.com>
---
 EmulatorPkg/Library/EmuBdsLib/PlatformData.c | 10 ++++++----
 EmulatorPkg/PlatformSmbiosDxe/SmbiosTable.c  |  2 +-
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/EmulatorPkg/Library/EmuBdsLib/PlatformData.c 
b/EmulatorPkg/Library/EmuBdsLib/PlatformData.c
index 977da6a..3eb959b 100644
--- a/EmulatorPkg/Library/EmuBdsLib/PlatformData.c
+++ b/EmulatorPkg/Library/EmuBdsLib/PlatformData.c
@@ -33,11 +33,13 @@ EMU_PLATFORM_UGA_DEVICE_PATH gGopDevicePath = {
   },
   {
     {
-      HARDWARE_DEVICE_PATH,
-      HW_VENDOR_DP,
       {
-        (UINT8) (sizeof (EMU_VENDOR_DEVICE_PATH_NODE)),
-        (UINT8) ((sizeof (EMU_VENDOR_DEVICE_PATH_NODE)) >> 8)
+        HARDWARE_DEVICE_PATH,
+        HW_VENDOR_DP,
+        {
+          (UINT8) (sizeof (EMU_VENDOR_DEVICE_PATH_NODE)),
+          (UINT8) ((sizeof (EMU_VENDOR_DEVICE_PATH_NODE)) >> 8)
+        },
       },
       EMU_GRAPHICS_WINDOW_PROTOCOL_GUID,
     },
diff --git a/EmulatorPkg/PlatformSmbiosDxe/SmbiosTable.c 
b/EmulatorPkg/PlatformSmbiosDxe/SmbiosTable.c
index cda5efa..b0faa5b 100644
--- a/EmulatorPkg/PlatformSmbiosDxe/SmbiosTable.c
+++ b/EmulatorPkg/PlatformSmbiosDxe/SmbiosTable.c
@@ -169,7 +169,7 @@ SMBIOS_TABLE_TYPE3  gSmbiosType3Template = {
   0,    // NumberofPowerCords;
   0,    // ContainedElementCount;
   0,    // ContainedElementRecordLength;
-  { 0 },    // ContainedElements[1];
+  { { 0 } },    // ContainedElements[1];
 };
 CHAR8  *gSmbiosType3Strings[] = {
   "edk2.sourceforge.net",
-- 
2.0.0


------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to