]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson,mgr: mark assert-only variables [[maybe_unused]] 69509/head
authorSun Yuechi <sunyuechi@iscas.ac.cn>
Mon, 15 Jun 2026 19:41:34 +0000 (03:41 +0800)
committerSun Yuechi <sunyuechi@iscas.ac.cn>
Tue, 16 Jun 2026 07:24:26 +0000 (15:24 +0800)
commitd3c8d3fc6566d3c909d36875d9ba05345fc90cb2
tree4eda41df4627af15b999bbc943494c5f8f374d33
parent1265c6b5cd9ba2e45ac65333fc52f0aa91adada4
crimson,mgr: mark assert-only variables [[maybe_unused]]

These variables are only read inside assert(), which is compiled out
under NDEBUG. Mark them [[maybe_unused]] to silence the warnings while
keeping the debug-only assert() style used by the surrounding code:

  src/crimson/os/seastore/lba/btree_lba_manager.cc:1078: unused variable 'orig_len' [-Wunused-variable]
  src/crimson/os/seastore/omap_manager/log/log_manager.cc:73: variable 'ret' set but not used [-Wunused-but-set-variable]
  src/crimson/os/seastore/transaction_manager.cc:382: variable 'intermediate_key' set but not used [-Wunused-but-set-variable]
  src/mgr/PyModule.cc:166,186: unused variable 'r' [-Wunused-variable]

Signed-off-by: Sun Yuechi <sunyuechi@iscas.ac.cn>
src/crimson/os/seastore/lba/btree_lba_manager.cc
src/crimson/os/seastore/omap_manager/log/log_manager.cc
src/crimson/os/seastore/transaction_manager.cc
src/mgr/PyModule.cc