Cleanup: Strict compiler warning in release mode

Fixes warning: unused variable 'no_resync_recurse_max' [-Wunused-const-variable]
This commit is contained in:
Sergey Sharybin
2024-07-17 14:31:48 +02:00
parent 6a39d79967
commit a2f825fde5

View File

@@ -782,7 +782,7 @@ int BKE_layer_collection_findindex(ViewLayer *view_layer, const LayerCollection
* to transitional big numbers. */
static std::atomic<int32_t> no_resync = 0;
/* Maximum allowed levels of re-entrant calls to #BKE_layer_collection_resync_forbid. */
static constexpr int no_resync_recurse_max = 16 * 256;
[[maybe_unused]] static constexpr int no_resync_recurse_max = 16 * 256;
void BKE_layer_collection_resync_forbid()
{