From 4556b570d545b3672b4853013b0bfea579bac70d Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Sat, 29 Jan 2022 18:44:05 -0800 Subject: [PATCH] Fix macOS warnings --- encoder/basisu_frontend.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/encoder/basisu_frontend.cpp b/encoder/basisu_frontend.cpp index 00210e6..1f30a33 100644 --- a/encoder/basisu_frontend.cpp +++ b/encoder/basisu_frontend.cpp @@ -2328,8 +2328,6 @@ namespace basisu m_optimized_cluster_selectors.resize(total_selector_clusters); - uint32_t total_clusters_processed = 0; - // For each selector codebook entry, and for each of the 4x4 selectors, determine which selector minimizes the error across all the blocks that use that quantized selector. const uint32_t N = 256; for (uint32_t cluster_index_iter = 0; cluster_index_iter < total_selector_clusters; cluster_index_iter += N) @@ -2338,7 +2336,7 @@ namespace basisu const uint32_t last_index = minimum((uint32_t)total_selector_clusters, cluster_index_iter + N); #ifndef __EMSCRIPTEN__ - m_params.m_pJob_pool->add_job([this, first_index, last_index, &total_clusters_processed, &total_selector_clusters] { + m_params.m_pJob_pool->add_job([this, first_index, last_index] { #endif for (uint32_t cluster_index = first_index; cluster_index < last_index; cluster_index++)