File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -55,12 +55,14 @@ struct TempPool {
5555 fmt::format (" {}-{}-{}" , ::time(nullptr ), ::getpid(),num++);
5656
5757 TempPool () {
58- auto r = store->getRados ()->get_rados_handle ()->pool_create (name.c_str ());
58+ [[maybe_unused]] auto r =
59+ store->getRados ()->get_rados_handle ()->pool_create (name.c_str ());
5960 assert (r == 0 );
6061 }
6162
6263 ~TempPool () {
63- auto r = store->getRados ()->get_rados_handle ()->pool_delete (name.c_str ());
64+ [[maybe_unused]] auto r =
65+ store->getRados ()->get_rados_handle ()->pool_delete (name.c_str ());
6466 assert (r == 0 );
6567 }
6668
@@ -70,8 +72,9 @@ struct TempPool {
7072
7173 operator librados::IoCtx () {
7274 librados::IoCtx ioctx;
73- auto r = store->getRados ()->get_rados_handle ()->ioctx_create (name.c_str (),
74- ioctx);
75+ [[maybe_unused]] auto r =
76+ store->getRados ()->get_rados_handle ()->ioctx_create (name.c_str (),
77+ ioctx);
7578 assert (r == 0 );
7679 return ioctx;
7780 }
You can’t perform that action at this time.
0 commit comments