From 40f92e161a2279fe13c1099ba7a22ead5b39223d Mon Sep 17 00:00:00 2001 From: Howard Trickey Date: Fri, 28 Aug 2020 10:44:09 -0400 Subject: Quiet a warning in non-debug build. --- source/blender/blenlib/intern/mesh_boolean.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source') diff --git a/source/blender/blenlib/intern/mesh_boolean.cc b/source/blender/blenlib/intern/mesh_boolean.cc index 51e8ab172fd..bb8b14ebdc6 100644 --- a/source/blender/blenlib/intern/mesh_boolean.cc +++ b/source/blender/blenlib/intern/mesh_boolean.cc @@ -2008,6 +2008,7 @@ static void propagate_windings_and_in_output_volume(PatchesInfo &pinfo, int t = patch.tri(0); int shape = shape_fn(t); BLI_assert(shape < nshapes); + UNUSED_VARS_NDEBUG(nshapes); if (dbg_level > 1) { std::cout << " representative tri " << t << ": in shape " << shape << "\n"; } @@ -2391,6 +2392,7 @@ static IMesh gwn_boolean(const IMesh &tm, Vector out_faces; out_faces.reserve(tm.face_size()); BLI_assert(nshapes == 2); /* TODO: generalize. */ + UNUSED_VARS_NDEBUG(nshapes); for (int p : pinfo.index_range()) { const Patch &patch = pinfo.patch(p); /* For test triangle, choose one in the middle of patch list -- cgit v1.2.3