Add necessary brace to fix GCC warnings

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9446 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qhuang8 2009-11-18 06:11:21 +00:00
parent 3d342022a1
commit 13796e8c3b
1 changed files with 36 additions and 18 deletions

View File

@ -79,20 +79,28 @@ extern VENDOR_DEVICE_PATH gTerminalTypeDeviceNode;
#define PCI_DEVICE_PATH_NODE(Func, Dev) \ #define PCI_DEVICE_PATH_NODE(Func, Dev) \
{ \ { \
HARDWARE_DEVICE_PATH, \ { \
HW_PCI_DP, \ HARDWARE_DEVICE_PATH, \
(UINT8) (sizeof (PCI_DEVICE_PATH)), \ HW_PCI_DP, \
(UINT8) ((sizeof (PCI_DEVICE_PATH)) >> 8), \ { \
(UINT8) (sizeof (PCI_DEVICE_PATH)), \
(UINT8) ((sizeof (PCI_DEVICE_PATH)) >> 8) \
} \
}, \
(Func), \ (Func), \
(Dev) \ (Dev) \
} }
#define PNPID_DEVICE_PATH_NODE(PnpId) \ #define PNPID_DEVICE_PATH_NODE(PnpId) \
{ \ { \
ACPI_DEVICE_PATH, \ { \
ACPI_DP, \ ACPI_DEVICE_PATH, \
(UINT8) (sizeof (ACPI_HID_DEVICE_PATH)), \ ACPI_DP, \
(UINT8) ((sizeof (ACPI_HID_DEVICE_PATH)) >> 8), \ { \
(UINT8) (sizeof (ACPI_HID_DEVICE_PATH)), \
(UINT8) ((sizeof (ACPI_HID_DEVICE_PATH)) >> 8) \
}, \
}, \
EISA_PNP_ID((PnpId)), \ EISA_PNP_ID((PnpId)), \
0 \ 0 \
} }
@ -114,10 +122,14 @@ extern VENDOR_DEVICE_PATH gTerminalTypeDeviceNode;
#define gUart \ #define gUart \
{ \ { \
MESSAGING_DEVICE_PATH, \ { \
MSG_UART_DP, \ MESSAGING_DEVICE_PATH, \
(UINT8) (sizeof (UART_DEVICE_PATH)), \ MSG_UART_DP, \
(UINT8) ((sizeof (UART_DEVICE_PATH)) >> 8), \ { \
(UINT8) (sizeof (UART_DEVICE_PATH)), \
(UINT8) ((sizeof (UART_DEVICE_PATH)) >> 8) \
} \
}, \
0, \ 0, \
115200, \ 115200, \
8, \ 8, \
@ -127,10 +139,14 @@ extern VENDOR_DEVICE_PATH gTerminalTypeDeviceNode;
#define gPcAnsiTerminal \ #define gPcAnsiTerminal \
{ \ { \
MESSAGING_DEVICE_PATH, \ { \
MSG_VENDOR_DP, \ MESSAGING_DEVICE_PATH, \
(UINT8) (sizeof (VENDOR_DEVICE_PATH)), \ MSG_VENDOR_DP, \
(UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8), \ { \
(UINT8) (sizeof (VENDOR_DEVICE_PATH)), \
(UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8) \
} \
}, \
DEVICE_PATH_MESSAGING_PC_ANSI \ DEVICE_PATH_MESSAGING_PC_ANSI \
} }
@ -138,8 +154,10 @@ extern VENDOR_DEVICE_PATH gTerminalTypeDeviceNode;
{ \ { \
END_DEVICE_PATH_TYPE, \ END_DEVICE_PATH_TYPE, \
END_ENTIRE_DEVICE_PATH_SUBTYPE, \ END_ENTIRE_DEVICE_PATH_SUBTYPE, \
END_DEVICE_PATH_LENGTH, \ { \
0 \ END_DEVICE_PATH_LENGTH, \
0 \
} \
} }
#define PCI_CLASS_SCC 0x07 #define PCI_CLASS_SCC 0x07