Skip to content

Commit 0b19305

Browse files
committed
ogt_voxel_meshify: fixed warnings
1 parent 19b618c commit 0b19305

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/vox2fbx.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,4 +423,3 @@ int32_t main(int32_t argc, char** argv) {
423423

424424
return 0;
425425
}
426-

src/ogt_voxel_meshify.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1189,7 +1189,7 @@ ogt_mesh_vec2i get_edge_bias(const ogt_mesh_vec2i& edge_vert0, const ogt_mesh_ve
11891189

11901190
uint32_t _tessellate_edge(ogt_mesh_vec2i* tess, uint32_t max_tess, const ogt_mesh_vec2i& edge_vert0, const ogt_mesh_vec2i& edge_vert1,
11911191
const uint8_t* slice_colors, int32_t size_x, int32_t size_y ) {
1192-
1192+
(void)max_tess;
11931193
uint32_t num_tess = 0;
11941194
int32_t edge_len = get_cardinal_vector_length(edge_vert1 - edge_vert0);
11951195
ogt_mesh_vec2i edge_bias = get_edge_bias(edge_vert0, edge_vert1);
@@ -1324,6 +1324,7 @@ uint32_t _tessellate_edge(ogt_mesh_vec2i* tess, uint32_t max_tess, const ogt_mes
13241324
//
13251325
int32_t _construct_polygon_for_slice(ogt_mesh_vec2i* verts, uint32_t max_verts, int32_t i, int32_t j, int32_t size_x, int32_t size_y, const uint8_t* slice_colors, ogt_mesh_bitset_64k& voxel_polygonized) {
13261326
assert(max_verts > 4);
1327+
(void)max_verts;
13271328
// start with just a single 4 vertex closed polygon
13281329
verts[0] = make_vec2i(i, j );
13291330
verts[1] = make_vec2i(i, j+1);

0 commit comments

Comments
 (0)