From 47919914a937d475a36c564d018683d4406f7d2a Mon Sep 17 00:00:00 2001 From: cfcohen Date: Fri, 4 Dec 2015 20:10:52 -0500 Subject: [PATCH] Suppress warnings about set but unused variables in CUDA compress routines. --- src/nvtt/cuda/CompressKernel.cu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nvtt/cuda/CompressKernel.cu b/src/nvtt/cuda/CompressKernel.cu index 4ec6143..c1adf4b 100644 --- a/src/nvtt/cuda/CompressKernel.cu +++ b/src/nvtt/cuda/CompressKernel.cu @@ -1464,13 +1464,13 @@ __global__ void compressDXT1(uint firstBlock, uint blockWidth, const uint * perm const int minIdx = findMinError(errors); __shared__ uint s_bestEndPoints; - __shared__ uint s_bestPermutation; + //__shared__ uint s_bestPermutation; // Only write the result of the winner thread. if (threadIdx.x == minIdx) { s_bestEndPoints = (bestEnd << 16) | bestStart; - s_bestPermutation = (bestStart != bestEnd) ? bestPermutation : 0; + //s_bestPermutation = (bestStart != bestEnd) ? bestPermutation : 0; } __syncthreads();