From fccab9f90b0327c00116e593351e1e4cd19b5677 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 2 Dec 2022 16:25:07 -0800 Subject: [PATCH] [mlir] Fix an unused variable warning This patch fixes: mlir/lib/ExecutionEngine/SparseTensorRuntime.cpp:646:18: error: unused variable 'dimRank' [-Werror,-Wunused-variable] --- mlir/lib/ExecutionEngine/SparseTensorRuntime.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/mlir/lib/ExecutionEngine/SparseTensorRuntime.cpp b/mlir/lib/ExecutionEngine/SparseTensorRuntime.cpp index 277f531..dbb08d5 100644 --- a/mlir/lib/ExecutionEngine/SparseTensorRuntime.cpp +++ b/mlir/lib/ExecutionEngine/SparseTensorRuntime.cpp @@ -648,6 +648,7 @@ void *_mlir_ciface_newSparseTensorFromReader( ASSERT_USIZE_EQ(lvlTypesRef, lvlRank); ASSERT_USIZE_EQ(lvl2dimRef, lvlRank); ASSERT_USIZE_EQ(dim2lvlRef, dimRank); + (void)dimRank; const index_type *lvlSizes = MEMREF_GET_PAYLOAD(lvlSizesRef); const DimLevelType *lvlTypes = MEMREF_GET_PAYLOAD(lvlTypesRef); const index_type *lvl2dim = MEMREF_GET_PAYLOAD(lvl2dimRef); -- 2.7.4