summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2009-11-18 06:11:21 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2009-11-18 06:11:21 +0000
commit13796e8c3b8c8e22a626e4f2f2b02a5368406a90 (patch)
tree869430f378e0dbb1f5030d8d283c2e5c62e1fa57
parent3d342022a12fb9b64585f2d2b40b6fe0ad90a1ee (diff)
downloadedk2-platforms-13796e8c3b8c8e22a626e4f2f2b02a5368406a90.tar.xz
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
-rw-r--r--OvmfPkg/Library/PlatformBdsLib/BdsPlatform.h54
1 files changed, 36 insertions, 18 deletions
diff --git a/OvmfPkg/Library/PlatformBdsLib/BdsPlatform.h b/OvmfPkg/Library/PlatformBdsLib/BdsPlatform.h
index 86fe30b8d5..deb51eb148 100644
--- a/OvmfPkg/Library/PlatformBdsLib/BdsPlatform.h
+++ b/OvmfPkg/Library/PlatformBdsLib/BdsPlatform.h
@@ -79,20 +79,28 @@ extern VENDOR_DEVICE_PATH gTerminalTypeDeviceNode;
#define PCI_DEVICE_PATH_NODE(Func, Dev) \
{ \
- HARDWARE_DEVICE_PATH, \
- HW_PCI_DP, \
- (UINT8) (sizeof (PCI_DEVICE_PATH)), \
- (UINT8) ((sizeof (PCI_DEVICE_PATH)) >> 8), \
+ { \
+ HARDWARE_DEVICE_PATH, \
+ HW_PCI_DP, \
+ { \
+ (UINT8) (sizeof (PCI_DEVICE_PATH)), \
+ (UINT8) ((sizeof (PCI_DEVICE_PATH)) >> 8) \
+ } \
+ }, \
(Func), \
(Dev) \
}
#define PNPID_DEVICE_PATH_NODE(PnpId) \
{ \
- ACPI_DEVICE_PATH, \
- ACPI_DP, \
- (UINT8) (sizeof (ACPI_HID_DEVICE_PATH)), \
- (UINT8) ((sizeof (ACPI_HID_DEVICE_PATH)) >> 8), \
+ { \
+ ACPI_DEVICE_PATH, \
+ ACPI_DP, \
+ { \
+ (UINT8) (sizeof (ACPI_HID_DEVICE_PATH)), \
+ (UINT8) ((sizeof (ACPI_HID_DEVICE_PATH)) >> 8) \
+ }, \
+ }, \
EISA_PNP_ID((PnpId)), \
0 \
}
@@ -114,10 +122,14 @@ extern VENDOR_DEVICE_PATH gTerminalTypeDeviceNode;
#define gUart \
{ \
- MESSAGING_DEVICE_PATH, \
- MSG_UART_DP, \
- (UINT8) (sizeof (UART_DEVICE_PATH)), \
- (UINT8) ((sizeof (UART_DEVICE_PATH)) >> 8), \
+ { \
+ MESSAGING_DEVICE_PATH, \
+ MSG_UART_DP, \
+ { \
+ (UINT8) (sizeof (UART_DEVICE_PATH)), \
+ (UINT8) ((sizeof (UART_DEVICE_PATH)) >> 8) \
+ } \
+ }, \
0, \
115200, \
8, \
@@ -127,10 +139,14 @@ extern VENDOR_DEVICE_PATH gTerminalTypeDeviceNode;
#define gPcAnsiTerminal \
{ \
- MESSAGING_DEVICE_PATH, \
- MSG_VENDOR_DP, \
- (UINT8) (sizeof (VENDOR_DEVICE_PATH)), \
- (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8), \
+ { \
+ MESSAGING_DEVICE_PATH, \
+ MSG_VENDOR_DP, \
+ { \
+ (UINT8) (sizeof (VENDOR_DEVICE_PATH)), \
+ (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8) \
+ } \
+ }, \
DEVICE_PATH_MESSAGING_PC_ANSI \
}
@@ -138,8 +154,10 @@ extern VENDOR_DEVICE_PATH gTerminalTypeDeviceNode;
{ \
END_DEVICE_PATH_TYPE, \
END_ENTIRE_DEVICE_PATH_SUBTYPE, \
- END_DEVICE_PATH_LENGTH, \
- 0 \
+ { \
+ END_DEVICE_PATH_LENGTH, \
+ 0 \
+ } \
}
#define PCI_CLASS_SCC 0x07