diff --git a/be/test/olap/path_gc_test.cpp b/be/test/olap/path_gc_test.cpp index 54edad8b9de4f44..c1b28bf31dd6f62 100644 --- a/be/test/olap/path_gc_test.cpp +++ b/be/test/olap/path_gc_test.cpp @@ -54,7 +54,7 @@ TEST(PathGcTest, GcTabletAndRowset) { auto create_tablet = [&](int64_t tablet_id) { auto tablet_meta = std::make_shared(); tablet_meta->_tablet_id = tablet_id; - tablet_meta->set_partition_id(10000); + (void)tablet_meta->set_partition_id(10000); tablet_meta->set_tablet_uid({tablet_id, 0}); tablet_meta->set_shard_id(tablet_id % 4); tablet_meta->_schema_hash = tablet_id;