Commit ab3d3ac
committed
rgw/posix: name the lock_guard in BucketCacheEntry::reclaim()
resolves compiler warning:
rgw/driver/posix/bucket_cache.h: In instantiation of ‘bool file::listing::BucketCacheEntry<D, B>::reclaim(const cohort::lru::ObjectFactory*) [with D = rgw::sal::POSIXDriver; B = rgw::sal::POSIXBucket]’:
src/rgw/driver/posix/bucket_cache.h:139:8: required from here
139 | bool reclaim(const cohort::lru::ObjectFactory* newobj_fac) {
| ^~~~~~~
src/rgw/driver/posix/bucket_cache.h:147:7: warning: ignoring return value of ‘std::lock_guard<_Mutex>::lock_guard(mutex_type&) [with _Mutex = std::mutex; mutex_type = std::mutex]’, declared with attribute ‘nodiscard’ [-Wunused-result]
147 | lock_guard{mtx};
| ^~~~~~~~~~
Signed-off-by: Casey Bodley <[email protected]>1 parent e5d33fa commit ab3d3ac
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| |||
0 commit comments