diff options
author | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-03-06 13:18:03 +0100 |
---|---|---|
committer | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-03-06 13:18:03 +0100 |
commit | 2633f112a325f9fdece7b8ac045a6f7f0eb42f53 (patch) | |
tree | 19a279471ef6fe410116bef6df3b3a6babd14aa4 | |
parent | 74be8fa660f58a646298dc4cdb2280e4c457a574 (diff) | |
download | qtmips-2633f112a325f9fdece7b8ac045a6f7f0eb42f53.tar.gz qtmips-2633f112a325f9fdece7b8ac045a6f7f0eb42f53.tar.bz2 qtmips-2633f112a325f9fdece7b8ac045a6f7f0eb42f53.zip |
Suppress warning where case fall-through is intentional.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
-rw-r--r-- | qtmips_machine/instruction.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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 |