Open qqiangwu opened 7 months ago
/Users/wuqq/dev/rocksdb-main/db/corruption_test.cc:790:15: warning: passing a possibly null pointer as argument where a non-null pointer is expected
790 | ASSERT_OK(db_->Flush(FlushOptions()));
| ^~~
/Users/wuqq/dev/rocksdb-main/test_util/testharness.h:83:62: note: expanded from macro 'ASSERT_OK'
83 | ASSERT_PRED_FORMAT1(ROCKSDB_NAMESPACE::test::AssertStatus, s)
| ^
/Users/wuqq/dev/rocksdb-main/third-party/gtest-1.8.1/fused-src/gtest/gtest.h:19909:36: note: expanded from macro 'ASSERT_PRED_FORMAT1'
19909 | GTEST_PRED_FORMAT1_(pred_format, v1, GTEST_FATAL_FAILURE_)
| ^~
/Users/wuqq/dev/rocksdb-main/third-party/gtest-1.8.1/fused-src/gtest/gtest.h:19892:34: note: expanded from macro 'GTEST_PRED_FORMAT1_'
19892 | GTEST_ASSERT_(pred_format(#v1, v1), \
| ^~
/Users/wuqq/dev/rocksdb-main/third-party/gtest-1.8.1/fused-src/gtest/gtest.h:19868:52: note: expanded from macro 'GTEST_ASSERT_'
19868 | if (const ::testing::AssertionResult gtest_ar = (expression)) \
| ^~~~~~~~~~
/Users/wuqq/dev/rocksdb-main/db/corruption_test.cc:798:11: note: assigned here
798 | db_ = nullptr;
| ^~~~~~~
db/corruption_test.cc