diff options
author | Karel Kočí <cynerd@email.cz> | 2017-12-12 16:54:46 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2017-12-12 16:54:46 +0100 |
commit | 5bf637a429bbcf09092b8d189010c50d61c3562f (patch) | |
tree | e7ffaa3be571eb6ba647eb5db81869dc4eddffa0 /qtmips_machine/alu.cpp | |
parent | 7bca6e89a438f6df52fd022f881ba6af1f1eea54 (diff) | |
download | qtmips-5bf637a429bbcf09092b8d189010c50d61c3562f.tar.gz qtmips-5bf637a429bbcf09092b8d189010c50d61c3562f.tar.bz2 qtmips-5bf637a429bbcf09092b8d189010c50d61c3562f.zip |
Suppress some warning
You can call it a fix but in reality it has same effect but I accept
that this is better.
Diffstat (limited to 'qtmips_machine/alu.cpp')
-rw-r--r-- | qtmips_machine/alu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qtmips_machine/alu.cpp b/qtmips_machine/alu.cpp index 8be9f2a..0350412 100644 --- a/qtmips_machine/alu.cpp +++ b/qtmips_machine/alu.cpp @@ -36,13 +36,13 @@ std::uint32_t alu_operate(enum AluOp operation, std::uint32_t s, std::uint32_t t case ALU_OP_ADD: if (s > (0xFFFFFFFF - t)) throw QTMIPS_EXCEPTION(Overflow, "ADD operation overflow/underflow", QString::number(s) + QString(" + ") + QString::number(t)); - // Intentional falltrough + __attribute__((fallthrough)); case ALU_OP_ADDU: return s + t; case ALU_OP_SUB: if (s < t) throw QTMIPS_EXCEPTION(Overflow, "SUB operation overflow/underflow", QString::number(s) + QString(" - ") + QString::number(t)); - // Intentional falltrough + __attribute__((fallthrough)); case ALU_OP_SUBU: return s - t; case ALU_OP_AND: |