From 2633f112a325f9fdece7b8ac045a6f7f0eb42f53 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Wed, 6 Mar 2019 13:18:03 +0100 Subject: Suppress warning where case fall-through is intentional. Signed-off-by: Pavel Pisa --- qtmips_machine/instruction.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qtmips_machine/instruction.cpp b/qtmips_machine/instruction.cpp index 42b70d7..31c04a7 100644 --- a/qtmips_machine/instruction.cpp +++ b/qtmips_machine/instruction.cpp @@ -41,6 +41,7 @@ #include "instruction.h" #include "alu.h" #include "memory.h" +#include "utils.h" #include "qtmipsexception.h" using namespace machine; @@ -1142,6 +1143,7 @@ Instruction Instruction::from_string(QString str, bool *pok, uint32_t inst_addr) break; case 'p': val -= (inst_addr + 4); + FALLTROUGH case 'o': case 'n': // Qt functions are limited, toLongLong would be usable -- cgit v1.2.3