summaryrefslogtreecommitdiff
path: root/ArmPkg/Library/DebugPeCoffExtraActionLib
diff options
context:
space:
mode:
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2011-06-15 19:53:15 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2011-06-15 19:53:15 +0000
commite862cd50c6a12183204ba0fa93403d88fd2e0376 (patch)
treeff484f16ff41d6778ab04f1edff7244365217611 /ArmPkg/Library/DebugPeCoffExtraActionLib
parent2b59fcd5b3d446ec2f509a68fda24dce62d4c8d3 (diff)
downloadedk2-platforms-e862cd50c6a12183204ba0fa93403d88fd2e0376.tar.xz
ArmPkg: Fix warnings raised by ARMGCC
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11829 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPkg/Library/DebugPeCoffExtraActionLib')
-rwxr-xr-xArmPkg/Library/DebugPeCoffExtraActionLib/DebugPeCoffExtraActionLib.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ArmPkg/Library/DebugPeCoffExtraActionLib/DebugPeCoffExtraActionLib.c b/ArmPkg/Library/DebugPeCoffExtraActionLib/DebugPeCoffExtraActionLib.c
index 4b95bdf54c..ad75f616ee 100755
--- a/ArmPkg/Library/DebugPeCoffExtraActionLib/DebugPeCoffExtraActionLib.c
+++ b/ArmPkg/Library/DebugPeCoffExtraActionLib/DebugPeCoffExtraActionLib.c
@@ -77,7 +77,9 @@ PeCoffLoaderRelocateImageExtraAction (
IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext
)
{
- CHAR8 Temp[512];
+#if !defined(MDEPKG_NDEBUG)
+ CHAR8 Temp[512];
+#endif
#ifdef __CC_ARM
// Print out the command for the RVD debugger to load symbols for this image
@@ -108,7 +110,9 @@ PeCoffLoaderUnloadImageExtraAction (
IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext
)
{
+#if !defined(MDEPKG_NDEBUG)
CHAR8 Temp[512];
+#endif
#ifdef __CC_ARM
{