softpipe: fixes -Werror,-Wunused-but-set-variable for clang-15 in sp_tile_cache.c
authorYonggang Luo <luoyonggang@gmail.com>
Fri, 4 Nov 2022 12:45:44 +0000 (20:45 +0800)
committerMarge Bot <emma+marge@anholt.net>
Thu, 17 Nov 2022 23:17:40 +0000 (23:17 +0000)
commite8a2f801af67630f7f767c3624b5c0c08ca70c96
tree3f3d3cffefeeb9a6055e1eb983b18459d6dc8565
parentaf082cb69c930928a2d9352b9237c758d0b34292
softpipe: fixes -Werror,-Wunused-but-set-variable for clang-15 in sp_tile_cache.c

error message:
../../src/gallium/drivers/softpipe/sp_tile_cache.c:346:9: error: variable 'numCleared' set but not used [-Werror,-Wunused-but-set-variable]
   uint numCleared = 0;
        ^

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19527>
src/gallium/drivers/softpipe/sp_tile_cache.c