diff options
author | Martin Roth <martin.roth@se-eng.com> | 2013-02-23 16:29:25 -0700 |
---|---|---|
committer | Patrick Georgi <patrick@georgi-clan.de> | 2013-02-24 17:01:20 +0100 |
commit | e533fdaa5902d228c4db694db390113b437a9777 (patch) | |
tree | 7d16b4dec122701be0b3b6521a4bd50519347a7e | |
parent | 49428d840323210433c96740545246296d65b3f2 (diff) | |
download | coreboot-e533fdaa5902d228c4db694db390113b437a9777.tar.xz |
AMD f14 vendorcode: Fix warning
Add brackets around initializer in #define for
PCIE_DDI_DATA_INITIALIZER to fix the warning:
PlatformGnbPcie.c:89, GNU Compiler 4 (gcc), Priority: Normal
missing braces around initializer [-Wmissing-braces]
This warning happens for Inagua and South Station
Change-Id: I7d8f742dd8335b704b0493aa6e9eaebc3cc50b1e
Signed-off-by: Martin Roth <martin.roth@se-eng.com>
Reviewed-on: http://review.coreboot.org/2495
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
-rw-r--r-- | src/vendorcode/amd/agesa/f14/AGESA.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vendorcode/amd/agesa/f14/AGESA.h b/src/vendorcode/amd/agesa/f14/AGESA.h index 5eaa63856f..3333976c49 100644 --- a/src/vendorcode/amd/agesa/f14/AGESA.h +++ b/src/vendorcode/amd/agesa/f14/AGESA.h @@ -813,7 +813,7 @@ typedef enum { #define PCIE_PORT_DATA_INITIALIZER(mPortPresent, mChannelType, mDevAddress, mHotplug, mMaxLinkSpeed, mMaxLinkCap, mAspm, mResetId) \ {mPortPresent, mChannelType, mDevAddress, 0, mMaxLinkSpeed, mAspm, mHotplug, mResetId, {0, mMaxLinkCap} } #define PCIE_DDI_DATA_INITIALIZER(mConnectorType, mAuxIndex, mHpdIndex ) \ -{mConnectorType, mAuxIndex, mHpdIndex, {0, 0}} +{mConnectorType, mAuxIndex, mHpdIndex, {{0}, {0}}} #define PCIE_DDI_DATA_INITIALIZER_V1(mConnectorType, mAuxIndex, mHpdIndex, mMapping0, mMapping1) \ {mConnectorType, mAuxIndex, mHpdIndex, {mMapping0, mMapping1}} |