aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeif Lindholm <leif.lindholm@linaro.org>2017-04-12 15:30:43 +0100
committerLeif Lindholm <leif.lindholm@linaro.org>2017-04-12 15:30:43 +0100
commit8e136812897e0c30a4860b7c886c93cd05a89413 (patch)
tree399c123d0263b7c56ce118041ee32d5bb3b71f06
parentcc7792fd7095923a1e4eea31fe55297cf27ebbf8 (diff)
downloadOpenPlatformPkg-2017-04-12.tar.gz
Platforms/ARM/Juno: fix RELEASE build with new PciHostBridgeLib2017-04-12
An array of static strings is set up for use in printing debug messages. This makes some compilers unhappy when building in RELEASE mode. So hide the definition behind #ifndef MDE_NDEBUG. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
-rw-r--r--Platforms/ARM/Juno/Library/JunoPciHostBridgeLib/JunoPciHostBridgeLib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Platforms/ARM/Juno/Library/JunoPciHostBridgeLib/JunoPciHostBridgeLib.c b/Platforms/ARM/Juno/Library/JunoPciHostBridgeLib/JunoPciHostBridgeLib.c
index f5cb254..5263a29 100644
--- a/Platforms/ARM/Juno/Library/JunoPciHostBridgeLib/JunoPciHostBridgeLib.c
+++ b/Platforms/ARM/Juno/Library/JunoPciHostBridgeLib/JunoPciHostBridgeLib.c
@@ -138,9 +138,11 @@ PciHostBridgeFreeRootBridges (
}
+#ifndef MDEPKG_NDEBUG
STATIC CONST CHAR16 mPciHostBridgeLibAcpiAddressSpaceTypeStr[][4] = {
L"Mem", L"I/O", L"Bus"
};
+#endif
/**
Inform the platform that the resource conflict happens.