diff options
author | Leif Lindholm <leif.lindholm@linaro.org> | 2017-04-12 15:30:43 +0100 |
---|---|---|
committer | Leif Lindholm <leif.lindholm@linaro.org> | 2017-04-13 11:01:24 +0100 |
commit | 04a2f5be71bca8576612d4731d8bf3e1b5dbf464 (patch) | |
tree | 7c3b14b8c5ed367637b64a87bd798cac43e097ad | |
parent | 67e85b0243275c086d408cf020a99c814a4f0afe (diff) |
Platforms/ARM/Juno: fix RELEASE build with new PciHostBridgeLib
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>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
-rw-r--r-- | Platforms/ARM/Juno/Library/JunoPciHostBridgeLib/JunoPciHostBridgeLib.c | 2 |
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.
|