From 3fb6b8ed93fda46ae737a734e6725bb693eae7a4 Mon Sep 17 00:00:00 2001 From: Hannes Brandt Date: Thu, 27 Jun 2024 15:12:58 +0200 Subject: [PATCH] feature-wrap-iteration: fix compiler warnings --- src/p4est_wrap.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/p4est_wrap.c b/src/p4est_wrap.c index e5c6fc1be..b74ef2e03 100644 --- a/src/p4est_wrap.c +++ b/src/p4est_wrap.c @@ -710,7 +710,8 @@ p4est_wrap_adapt (p4est_wrap_t * pp) p4est_t *p4est = pp->p4est; sc_array_t *quad_levels; int8_t *level; - size_t tt, qz, zz; + size_t qz, zz; + p4est_topidx_t tt; p4est_tree_t *tree; sc_array_t *tquadrants; p4est_quadrant_t *quadrant; @@ -740,7 +741,7 @@ p4est_wrap_adapt (p4est_wrap_t * pp) tree = p4est_tree_array_index (p4est->trees, tt); tquadrants = &tree->quadrants; for (zz = 0; zz < tquadrants->elem_count; ++zz, ++qz) { - level = sc_array_index (quad_levels, qz); + level = (int8_t *) sc_array_index (quad_levels, qz); quadrant = p4est_quadrant_array_index (tquadrants, zz); *level = quadrant->level; }