summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2015-07-31 21:51:53 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2015-07-31 21:51:53 (GMT)
commit9226736f0702db296433466462cfbad5a11bf46b (patch)
tree43589a0524e0a6ce756b4ccf836f1bd4e9d0d113 /src
parentfb79d2e3dac19aca1aa1b903812638b40141c244 (diff)
Removed last compiler warnings with lists built from one register.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@562 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src')
-rw-r--r--src/arch/arm/v7/helpers.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/arch/arm/v7/helpers.h b/src/arch/arm/v7/helpers.h
index b4fe9b4..e03f5ab 100644
--- a/src/arch/arm/v7/helpers.h
+++ b/src/arch/arm/v7/helpers.h
@@ -246,11 +246,13 @@ return shift_t;
})
-#define ListFromRegister(reg) \
+#define ListFromRegister(regop) \
({ \
GArchOperand *__result; \
+ GArmV7Register *__reg; \
__result = g_armv7_reglist_operand_new(); \
- g_armv7_reglist_add_register(G_ARMV7_REGLIST_OPERAND(__result), reg); \
+ __reg = G_ARMV7_REGISTER(regop); \
+ g_armv7_reglist_add_register(G_ARMV7_REGLIST_OPERAND(__result), __reg); \
__result; \
})