From 72f34ad98742e9056f71b5529d1c8aa9f0a19ba8 Mon Sep 17 00:00:00 2001 From: Konstantin Boyarinov Date: Fri, 28 Jun 2024 08:24:43 -0700 Subject: [PATCH] Supress unused variable warning in release mode --- include/oneapi/tbb/detail/_flow_graph_join_impl.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/oneapi/tbb/detail/_flow_graph_join_impl.h b/include/oneapi/tbb/detail/_flow_graph_join_impl.h index bf36288655..15c9e98b10 100644 --- a/include/oneapi/tbb/detail/_flow_graph_join_impl.h +++ b/include/oneapi/tbb/detail/_flow_graph_join_impl.h @@ -756,6 +756,8 @@ if (!find_result) { __TBB_ASSERT(false, "Failed to find item corresponding to current_key."); } +#else + tbb::detail::suppress_unused_warning(find_result); #endif current->status.store( SUCCEEDED, std::memory_order_release); }