summaryrefslogtreecommitdiff
path: root/plugins/arm
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-10-20 21:44:30 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-10-20 21:44:30 (GMT)
commite8009661bc2a647678b944a09ee3a7e218692e44 (patch)
tree133934e85bf05314dadd8654ed0fb344cf5732d2 /plugins/arm
parent43b19e1c8e902e6e96a5ca912497268a19255ac5 (diff)
Fixed some compilation warnings.
Diffstat (limited to 'plugins/arm')
-rw-r--r--plugins/arm/v7/operands/offset.c6
-rw-r--r--plugins/arm/v7/operands/rotation.c6
-rw-r--r--plugins/arm/v7/operands/shift.c6
3 files changed, 6 insertions, 12 deletions
diff --git a/plugins/arm/v7/operands/offset.c b/plugins/arm/v7/operands/offset.c
index 967b296..75fd6a0 100644
--- a/plugins/arm/v7/operands/offset.c
+++ b/plugins/arm/v7/operands/offset.c
@@ -263,6 +263,8 @@ static GArchOperand *g_armv7_offset_operand_get_inner_operand_from_path(const GA
{
GArchOperand *result; /* Opérande trouvée à renvoyer */
+ result = NULL;
+
if (strncmp(path, "0", 1) == 0)
switch (path[1])
{
@@ -275,10 +277,6 @@ static GArchOperand *g_armv7_offset_operand_get_inner_operand_from_path(const GA
result = g_arch_operand_get_inner_operand_from_path(operand->value, path + 1);
break;
- default:
- result = NULL;
- break;
-
}
return result;
diff --git a/plugins/arm/v7/operands/rotation.c b/plugins/arm/v7/operands/rotation.c
index 5db1d27..bd99e63 100644
--- a/plugins/arm/v7/operands/rotation.c
+++ b/plugins/arm/v7/operands/rotation.c
@@ -279,6 +279,8 @@ static GArchOperand *g_armv7_rotation_operand_get_inner_operand_from_path(const
{
GArchOperand *result; /* Opérande trouvée à renvoyer */
+ result = NULL;
+
if (strncmp(path, "0", 1) == 0)
switch (path[1])
{
@@ -291,10 +293,6 @@ static GArchOperand *g_armv7_rotation_operand_get_inner_operand_from_path(const
result = g_arch_operand_get_inner_operand_from_path(operand->value, path + 1);
break;
- default:
- result = NULL;
- break;
-
}
return result;
diff --git a/plugins/arm/v7/operands/shift.c b/plugins/arm/v7/operands/shift.c
index 8da666e..a25f36c 100644
--- a/plugins/arm/v7/operands/shift.c
+++ b/plugins/arm/v7/operands/shift.c
@@ -263,6 +263,8 @@ static GArchOperand *g_armv7_shift_operand_get_inner_operand_from_path(const GAr
{
GArchOperand *result; /* Opérande trouvée à renvoyer */
+ result = NULL;
+
if (strncmp(path, "0", 1) == 0)
switch (path[1])
{
@@ -275,10 +277,6 @@ static GArchOperand *g_armv7_shift_operand_get_inner_operand_from_path(const GAr
result = g_arch_operand_get_inner_operand_from_path(operand->shift_value, path + 1);
break;
- default:
- result = NULL;
- break;
-
}
return result;