From 9fcb41de5ec4dd9f4e68cdec400fd8b0ce77fa6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=B8=D0=BB=D1=8C=D1=8F=20=5F?= Date: Tue, 17 Jun 2025 17:49:21 +0200 Subject: [PATCH] Cleanup: unused type alias in release build `volume_grid_function_eval.cc(635,15): warning: unused type alias 'ValueType' [-Wunused-local-typedef]` Pull Request: https://projects.blender.org/blender/blender/pulls/140497 --- source/blender/nodes/intern/volume_grid_function_eval.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/blender/nodes/intern/volume_grid_function_eval.cc b/source/blender/nodes/intern/volume_grid_function_eval.cc index ec1884f53d2..339c9ab29b5 100644 --- a/source/blender/nodes/intern/volume_grid_function_eval.cc +++ b/source/blender/nodes/intern/volume_grid_function_eval.cc @@ -631,9 +631,11 @@ BLI_NOINLINE static void process_background(const mf::MultiFunction &fn, if (const openvdb::GridBase *grid_base = input_grids[input_i]) { to_typed_grid(*grid_base, [&](const auto &grid) { +# ifndef NDEBUG using GridT = std::decay_t; using ValueType = typename GridT::ValueType; BLI_assert(param_cpp_type.size == sizeof(ValueType)); +# endif const auto &tree = grid.tree(); params.add_readonly_single_input(GPointer(param_cpp_type, &tree.background())); });