diff --git a/.idea/tyche.iml b/.idea/tyche.iml
deleted file mode 100644
index 4c94235..0000000
--- a/.idea/tyche.iml
+++ /dev/null
@@ -1,2 +0,0 @@
-
-
\ No newline at end of file
diff --git a/src/assembler/assembler.cc b/src/assembler/assembler.cc
index d189a26..babf196 100644
--- a/src/assembler/assembler.cc
+++ b/src/assembler/assembler.cc
@@ -70,7 +70,7 @@ ByteArray Assembler::assemble()
case vm::OperandType::Int8: bp.functions.at(function_id).code.append_int8((int8_t) *oper); break;
case vm::OperandType::Int16: bp.functions.at(function_id).code.append_int16((int16_t) *oper); break;
case vm::OperandType::Int32: bp.functions.at(function_id).code.append_int32(*oper); break;
- case vm::OperandType::NoOperand: default:
+ case vm::OperandType::NoOperand: default: break;
}
if (tt.type != TokenType::Enter)
diff --git a/src/vm/code.cc b/src/vm/code.cc
index ab3d9b3..96a2e11 100644
--- a/src/vm/code.cc
+++ b/src/vm/code.cc
@@ -45,6 +45,7 @@ Operation Code::operation(Location const& location) const
.next_location = { .function_id = location.function_id, .pc = location.pc + 5 },
};
default:
+ break;
}
throw std::logic_error("Should not get here");
diff --git a/src/vm/instruction.cc b/src/vm/instruction.cc
index 27ea8ce..f60f0b9 100644
--- a/src/vm/instruction.cc
+++ b/src/vm/instruction.cc
@@ -187,6 +187,7 @@ std::pair debug_instruction(bc::Bytecode const& bt, uint32_
case OperandType::Int32:
return debug_instruction(inst, bt.get_code_int32(function_id, addr + 1));
default:
+ break;
}
return { "???", 1 };
diff --git a/src/vm/value.hh b/src/vm/value.hh
index a052cb1..5d01d06 100644
--- a/src/vm/value.hh
+++ b/src/vm/value.hh
@@ -1,6 +1,7 @@
#ifndef TYCHE_VALUE_HH
#define TYCHE_VALUE_HH
+#include
#include
#include