[mlir] Fix an unused variable warning
authorKazu Hirata <kazu@google.com>
Sat, 3 Dec 2022 00:25:07 +0000 (16:25 -0800)
committerKazu Hirata <kazu@google.com>
Sat, 3 Dec 2022 00:25:07 +0000 (16:25 -0800)
This patch fixes:

  mlir/lib/ExecutionEngine/SparseTensorRuntime.cpp:646:18: error:
  unused variable 'dimRank' [-Werror,-Wunused-variable]

mlir/lib/ExecutionEngine/SparseTensorRuntime.cpp

index 277f531..dbb08d5 100644 (file)
@@ -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);