CorebootPayloadPkg: Use extra braces to prevent gcc compile fail
[mirror_edk2.git] / CorebootPayloadPkg / SerialDxe / SerialIo.c
index 35602c0..cdede32 100644 (file)
@@ -37,18 +37,18 @@ typedef struct {
 \r
 SIMPLE_TEXT_OUT_DEVICE_PATH mDevicePath = {\r
   {\r
-    { HARDWARE_DEVICE_PATH, HW_VENDOR_DP, sizeof (VENDOR_DEVICE_PATH), 0},\r
+    { HARDWARE_DEVICE_PATH, HW_VENDOR_DP, { sizeof (VENDOR_DEVICE_PATH), 0} },\r
     EFI_SERIAL_IO_PROTOCOL_GUID // Use the drivers GUID\r
   },\r
   {\r
-    { MESSAGING_DEVICE_PATH, MSG_UART_DP, sizeof (UART_DEVICE_PATH), 0},\r
+    { MESSAGING_DEVICE_PATH, MSG_UART_DP, { sizeof (UART_DEVICE_PATH), 0} },\r
     0,        // Reserved\r
     FixedPcdGet64 (PcdUartDefaultBaudRate),   // BaudRate\r
     FixedPcdGet8 (PcdUartDefaultDataBits),    // DataBits\r
     FixedPcdGet8 (PcdUartDefaultParity),      // Parity (N)\r
     FixedPcdGet8 (PcdUartDefaultStopBits)     // StopBits\r
   },\r
-  { END_DEVICE_PATH_TYPE, END_ENTIRE_DEVICE_PATH_SUBTYPE, sizeof (EFI_DEVICE_PATH_PROTOCOL), 0}\r
+  { END_DEVICE_PATH_TYPE, END_ENTIRE_DEVICE_PATH_SUBTYPE, { sizeof (EFI_DEVICE_PATH_PROTOCOL), 0 } }\r
 };\r
 \r
 EFI_HANDLE  gHandle = NULL;\r