Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey@blender.org>2022-09-20 16:39:29 +0300
committerSergey Sharybin <sergey@blender.org>2022-09-20 16:39:29 +0300
commitafe91903af49abafb5796c6d13447b119d37c412 (patch)
tree2688ffe3d8b77748738338f85235ade471c14f33
parent3132d2751e61961d46a2aaf168893a6ba7d03a0b (diff)
Cleanup: Strict compiler warning
Resolves -Wunneeded-internal-declaration warning generated by Clang.
-rw-r--r--source/blender/nodes/intern/geometry_nodes_lazy_function.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/nodes/intern/geometry_nodes_lazy_function.cc b/source/blender/nodes/intern/geometry_nodes_lazy_function.cc
index 718aaef5680..4ffeb815e34 100644
--- a/source/blender/nodes/intern/geometry_nodes_lazy_function.cc
+++ b/source/blender/nodes/intern/geometry_nodes_lazy_function.cc
@@ -1371,9 +1371,10 @@ GeometryNodesLazyFunctionGraphInfo::~GeometryNodesLazyFunctionGraphInfo()
}
}
-static void add_thread_id_debug_message(const GeometryNodesLazyFunctionGraphInfo &lf_graph_info,
- const lf::FunctionNode &node,
- const lf::Context &context)
+[[maybe_unused]] static void add_thread_id_debug_message(
+ const GeometryNodesLazyFunctionGraphInfo &lf_graph_info,
+ const lf::FunctionNode &node,
+ const lf::Context &context)
{
static std::atomic<int> thread_id_source = 0;
static thread_local const int thread_id = thread_id_source.fetch_add(1);