From 9085457c819add4d580882a047f49c22859833ac Mon Sep 17 00:00:00 2001 From: zwei4 Date: Thu, 11 May 2017 14:14:48 +0800 Subject: Fix some GCC build errors. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: zwei4 --- .../Common/Library/PlatformBdsLib/PlatformData.c | 30 ++++++++++++++-------- 1 file changed, 19 insertions(+), 11 deletions(-) (limited to 'Platform/BroxtonPlatformPkg/Common/Library/PlatformBdsLib/PlatformData.c') diff --git a/Platform/BroxtonPlatformPkg/Common/Library/PlatformBdsLib/PlatformData.c b/Platform/BroxtonPlatformPkg/Common/Library/PlatformBdsLib/PlatformData.c index 8f619da558..dd9808c0b6 100644 --- a/Platform/BroxtonPlatformPkg/Common/Library/PlatformBdsLib/PlatformData.c +++ b/Platform/BroxtonPlatformPkg/Common/Library/PlatformBdsLib/PlatformData.c @@ -2,7 +2,7 @@ Defined the platform specific device path which will be used by platform Bbd to perform the platform policy connect. - Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.
+ Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -117,13 +117,17 @@ EFI_DEVICE_PATH_PROTOCOL* gPlatformAllPossiblePciVgaConsole [] = { // LEGACY_HD_DEVICE_PATH gLegacyHd = { { - BBS_DEVICE_PATH, - BBS_BBS_DP, - (UINT8) (sizeof (BBS_BBS_DEVICE_PATH)), - (UINT8) ((sizeof (BBS_BBS_DEVICE_PATH)) >> 8), + { + BBS_DEVICE_PATH, + BBS_BBS_DP, + { + (UINT8) (sizeof (BBS_BBS_DEVICE_PATH)), + (UINT8) ((sizeof (BBS_BBS_DEVICE_PATH)) >> 8) + } + }, BBS_TYPE_HARDDRIVE, 0, - 0 + {0} }, gEndEntire }; @@ -133,13 +137,17 @@ LEGACY_HD_DEVICE_PATH gLegacyHd = { // LEGACY_HD_DEVICE_PATH gLegacyCdrom = { { - BBS_DEVICE_PATH, - BBS_BBS_DP, - (UINT8) (sizeof (BBS_BBS_DEVICE_PATH)), - (UINT8) ((sizeof (BBS_BBS_DEVICE_PATH)) >> 8), + { + BBS_DEVICE_PATH, + BBS_BBS_DP, + { + (UINT8) (sizeof (BBS_BBS_DEVICE_PATH)), + (UINT8) ((sizeof (BBS_BBS_DEVICE_PATH)) >> 8), + } + }, BBS_TYPE_CDROM, 0, - 0 + {0} }, gEndEntire }; -- cgit v1.2.3