]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix GCC warnings
authorandrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 3 Feb 2010 23:07:29 +0000 (23:07 +0000)
committerandrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 3 Feb 2010 23:07:29 +0000 (23:07 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9925 6f19259b-4bc3-4df7-8a09-765794883524

ArmPkg/Library/ArmDisassemblerLib/ThumbDisassembler.c

index 0f4139d5852d6b7ac0a101dc5497352aa18423f9..74154fc2197e3637e24335ebf35a0b4f7ffe4bc6 100644 (file)
@@ -369,6 +369,7 @@ SignExtend32 (
 // The PC is after the instruction that is excuting. So you pass\r
 // in the instruction address and you get back the aligned answer\r
 //\r
+UINT32\r
 PCAlign4 (\r
   IN  UINT32  Data\r
   )\r
@@ -728,6 +729,7 @@ DisassembleThumbInstruction (
 \r
       case RFE_FORMAT:\r
         // <Rn>{!}\r
+        W = (OpCode32 & BIT21) == BIT21;\r
         AsciiSPrint (&Buf[Offset], Size - Offset, " %a%a, #0x%x", gReg[Rn], W?"!":"");\r
         return;\r
       \r