fix compiler warnings (GCC + Clang)

This commit is contained in:
MihailRis
2025-03-20 22:04:29 +03:00
parent 6c3d2d0907
commit 3d22de761f
50 changed files with 80 additions and 103 deletions
+2 -1
View File
@@ -145,7 +145,7 @@ static int get_axis(lua::State* L) {
}
auto z = lua::tointeger(L, 3);
glm::ivec3 defAxis;
glm::ivec3 defAxis {};
defAxis[n] = 1;
auto vox = blocks_agent::get(*level->chunks, x, y, z);
@@ -562,6 +562,7 @@ static int set_field(
return lua::pushinteger(L,
dataStruct.setUnicode(dst, value.asString(), field));
}
[[fallthrough]];
case data::FieldType::I8:
case data::FieldType::I16:
case data::FieldType::I32: