From cad28300063fa1ba32e4dee26a83891e32a2eac3 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 6 Nov 2024 17:05:36 +0100 Subject: [PATCH] Cleanup: Fix strict compiler warning about unused typeinfo_ The NodeDeclarationBuilder::typeinfo_ is unused in release builds, but is used in debug builds for assert. Mark it as `[[maybe_unused]]` to silence strict compilation warning. Pull Request: https://projects.blender.org/blender/blender/pulls/129912 --- source/blender/nodes/NOD_node_declaration.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/blender/nodes/NOD_node_declaration.hh b/source/blender/nodes/NOD_node_declaration.hh index 302601c4cb8..07edf840997 100644 --- a/source/blender/nodes/NOD_node_declaration.hh +++ b/source/blender/nodes/NOD_node_declaration.hh @@ -572,7 +572,8 @@ class NodeDeclaration { class NodeDeclarationBuilder : public DeclarationListBuilder { private: - const bke::bNodeType &typeinfo_; + /* Unused in release builds, but used for BLI_assert() in debug builds. */ + [[maybe_unused]] const bke::bNodeType &typeinfo_; NodeDeclaration &declaration_; const bNodeTree *ntree_ = nullptr; const bNode *node_ = nullptr;