]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPkg/Library/ArmDisassemblerLib/ThumbDisassembler.c
Fix GCC warnings
[mirror_edk2.git] / 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