[Bf-blender-cvs] [afe91903af4] master: Cleanup: Strict compiler warning

Sergey Sharybin noreply at git.blender.org
Tue Sep 20 15:40:04 CEST 2022


Commit: afe91903af49abafb5796c6d13447b119d37c412
Author: Sergey Sharybin
Date:   Tue Sep 20 15:39:29 2022 +0200
Branches: master
https://developer.blender.org/rBafe91903af49abafb5796c6d13447b119d37c412

Cleanup: Strict compiler warning

Resolves -Wunneeded-internal-declaration warning generated by Clang.

===================================================================

M	source/blender/nodes/intern/geometry_nodes_lazy_function.cc

===================================================================

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);



More information about the Bf-blender-cvs mailing list