diff options
Diffstat (limited to 'plugins/arm')
-rw-r--r-- | plugins/arm/instruction.c | 7 | ||||
-rw-r--r-- | plugins/arm/v7/processor.c | 5 |
2 files changed, 10 insertions, 2 deletions
diff --git a/plugins/arm/instruction.c b/plugins/arm/instruction.c index 3a7af7f..ae9721a 100644 --- a/plugins/arm/instruction.c +++ b/plugins/arm/instruction.c @@ -24,6 +24,7 @@ #include "instruction.h" +#include <assert.h> #include <malloc.h> #include <string.h> @@ -242,6 +243,12 @@ bool g_arm_instruction_set_cond(GArmInstruction *instr, ArmCondCode cond) case ACC_LE: suffix = "le"; break; case ACC_AL: suffix = NULL; break; case ACC_NV: suffix = "nv"; break; + + default: /* Pour GCC... */ + assert(false); + suffix = NULL; + break; + } if (suffix != NULL) diff --git a/plugins/arm/v7/processor.c b/plugins/arm/v7/processor.c index 5bbe808..0203f32 100644 --- a/plugins/arm/v7/processor.c +++ b/plugins/arm/v7/processor.c @@ -281,8 +281,9 @@ static GArchInstruction *g_armv7_processor_disassemble(const GArmV7Processor *pr break; - default: - assert(0); + default: /* Pour GCC... */ + assert(false); + result = NULL; break; } |