summaryrefslogtreecommitdiffstats
path: root/CorebootPayloadPkg
diff options
context:
space:
mode:
authorScott Duplichan <scott@notabs.org>2015-04-10 02:41:23 +0000
committermauricema <mauricema@Edk2>2015-04-10 02:41:23 +0000
commit30a3e833ea8543f9b9d6957852c02d970b81cfec (patch)
tree78b1d1e7c131c77e1d7867097d133e203c866560 /CorebootPayloadPkg
parentb6242db90a340a934f4ab2313df76b44c9b1dcb0 (diff)
downloadedk2-30a3e833ea8543f9b9d6957852c02d970b81cfec.tar.gz
edk2-30a3e833ea8543f9b9d6957852c02d970b81cfec.tar.bz2
edk2-30a3e833ea8543f9b9d6957852c02d970b81cfec.zip
CorebootPayloadPkg: Use extra braces to prevent gcc compile fail
Use extra braces around initialization data to prevent gcc compile error: -Werror=missing-braces. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Scott Duplichan <scott@notabs.org> Reviewed-by: Maurice Ma <maurice.ma@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17147 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'CorebootPayloadPkg')
-rw-r--r--CorebootPayloadPkg/SerialDxe/SerialIo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/CorebootPayloadPkg/SerialDxe/SerialIo.c b/CorebootPayloadPkg/SerialDxe/SerialIo.c
index 35602c0276..cdede32166 100644
--- a/CorebootPayloadPkg/SerialDxe/SerialIo.c
+++ b/CorebootPayloadPkg/SerialDxe/SerialIo.c
@@ -37,18 +37,18 @@ typedef struct {
SIMPLE_TEXT_OUT_DEVICE_PATH mDevicePath = {
{
- { HARDWARE_DEVICE_PATH, HW_VENDOR_DP, sizeof (VENDOR_DEVICE_PATH), 0},
+ { HARDWARE_DEVICE_PATH, HW_VENDOR_DP, { sizeof (VENDOR_DEVICE_PATH), 0} },
EFI_SERIAL_IO_PROTOCOL_GUID // Use the drivers GUID
},
{
- { MESSAGING_DEVICE_PATH, MSG_UART_DP, sizeof (UART_DEVICE_PATH), 0},
+ { MESSAGING_DEVICE_PATH, MSG_UART_DP, { sizeof (UART_DEVICE_PATH), 0} },
0, // Reserved
FixedPcdGet64 (PcdUartDefaultBaudRate), // BaudRate
FixedPcdGet8 (PcdUartDefaultDataBits), // DataBits
FixedPcdGet8 (PcdUartDefaultParity), // Parity (N)
FixedPcdGet8 (PcdUartDefaultStopBits) // StopBits
},
- { END_DEVICE_PATH_TYPE, END_ENTIRE_DEVICE_PATH_SUBTYPE, sizeof (EFI_DEVICE_PATH_PROTOCOL), 0}
+ { END_DEVICE_PATH_TYPE, END_ENTIRE_DEVICE_PATH_SUBTYPE, { sizeof (EFI_DEVICE_PATH_PROTOCOL), 0 } }
};
EFI_HANDLE gHandle = NULL;