You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jaepil Jeong
969d4e1dd2
Fix compile errors in Clang due to unused variables depending on the build configuration (#11234)
Summary:
This PR fixes compilation errors in Clang due to unused variables like the below:
```
[109/329] Building CXX object CMakeFiles/rocksdb.dir/db/version_edit_handler.cc.o
FAILED: CMakeFiles/rocksdb.dir/db/version_edit_handler.cc.o
ccache /opt/homebrew/opt/llvm/bin/clang++ -DGFLAGS=1 -DGFLAGS_IS_A_DLL=0 -DHAVE_FULLFSYNC -DJEMALLOC_NO_DEMANGLE -DLZ4 -DOS_MACOSX -DROCKSDB_JEMALLOC -DROCKSDB_LIB_IO_POSIX -DROCKSDB_NO_DYNAMIC_EXTENSION -DROCKSDB_PLATFORM_POSIX -DSNAPPY -DTBB -DZLIB -DZSTD -I/Users/jaepil/work/deepsearch/deps/cpp/rocksdb -I/Users/jaepil/work/deepsearch/deps/cpp/rocksdb/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -I/Users/jaepil/app/include -I/opt/homebrew/include -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/llvm/include/c++/v1 -W -Wextra -Wall -pthread -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-invalid-offsetof -fno-omit-frame-pointer -momit-leaf-frame-pointer -march=armv8-a+crc+crypto -Wno-unused-function -Werror -O2 -g -DNDEBUG -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -std=gnu++20 -MD -MT CMakeFiles/rocksdb.dir/db/version_edit_handler.cc.o -MF CMakeFiles/rocksdb.dir/db/version_edit_handler.cc.o.d -o CMakeFiles/rocksdb.dir/db/version_edit_handler.cc.o -c /Users/jaepil/work/deepsearch/deps/cpp/rocksdb/db/version_edit_handler.cc
/Users/jaepil/work/deepsearch/deps/cpp/rocksdb/db/version_edit_handler.cc:30:10: error: variable 'recovered_edits' set but not used [-Werror,-Wunused-but-set-variable]
size_t recovered_edits = 0;
^
1 error generated.
```
Pull Request resolved: https://github.com/facebook/rocksdb/pull/11234
Reviewed By: cbi42
Differential Revision: D43458604
Pulled By: ajkr
fbshipit-source-id: d8c50e1a108887b037a120cd9f19374ddaeee817
|
2 years ago |
.. |
cache.cc
|
Remove FactoryFunc from LoadXXXObject (#11203)
|
2 years ago |
cache_bench.cc
|
Add (& fix) some simple source code checks (#8821)
|
3 years ago |
cache_bench_tool.cc
|
Put Cache and CacheWrapper in new public header (#11192)
|
2 years ago |
cache_entry_roles.cc
|
Major Cache refactoring, CPU efficiency improvement (#10975)
|
2 years ago |
cache_entry_roles.h
|
Major Cache refactoring, CPU efficiency improvement (#10975)
|
2 years ago |
cache_entry_stats.h
|
Major Cache refactoring, CPU efficiency improvement (#10975)
|
2 years ago |
cache_helpers.cc
|
Major Cache refactoring, CPU efficiency improvement (#10975)
|
2 years ago |
cache_helpers.h
|
Put Cache and CacheWrapper in new public header (#11192)
|
2 years ago |
cache_key.cc
|
Put Cache and CacheWrapper in new public header (#11192)
|
2 years ago |
cache_key.h
|
Derive cache keys from SST unique IDs (#10394)
|
2 years ago |
cache_reservation_manager.cc
|
Major Cache refactoring, CPU efficiency improvement (#10975)
|
2 years ago |
cache_reservation_manager.h
|
Major Cache refactoring, CPU efficiency improvement (#10975)
|
2 years ago |
cache_reservation_manager_test.cc
|
Print stack traces on frozen tests in CI (#10828)
|
2 years ago |
cache_test.cc
|
Major Cache refactoring, CPU efficiency improvement (#10975)
|
2 years ago |
charged_cache.cc
|
Major Cache refactoring, CPU efficiency improvement (#10975)
|
2 years ago |
charged_cache.h
|
Put Cache and CacheWrapper in new public header (#11192)
|
2 years ago |
clock_cache.cc
|
remove dependency on options.h for port_posix.h andport_win.h (#11214)
|
2 years ago |
clock_cache.h
|
Major Cache refactoring, CPU efficiency improvement (#10975)
|
2 years ago |
compressed_secondary_cache.cc
|
Customize CompressedSecondaryCache by block kind (#11204)
|
2 years ago |
compressed_secondary_cache.h
|
Customize CompressedSecondaryCache by block kind (#11204)
|
2 years ago |
compressed_secondary_cache_test.cc
|
Customize CompressedSecondaryCache by block kind (#11204)
|
2 years ago |
lru_cache.cc
|
Fix compile errors in Clang due to unused variables depending on the build configuration (#11234)
|
2 years ago |
lru_cache.h
|
Major Cache refactoring, CPU efficiency improvement (#10975)
|
2 years ago |
lru_cache_test.cc
|
Add filter/index/data secondary cache hits stats (#11246)
|
2 years ago |
secondary_cache.cc
|
Major Cache refactoring, CPU efficiency improvement (#10975)
|
2 years ago |
sharded_cache.cc
|
Refactor ShardedCache for more sharing, static polymorphism (#10801)
|
2 years ago |
sharded_cache.h
|
Put Cache and CacheWrapper in new public header (#11192)
|
2 years ago |
typed_cache.h
|
Put Cache and CacheWrapper in new public header (#11192)
|
2 years ago |