mirror of
https://github.com/ceph/ceph
synced 2025-02-21 01:47:25 +00:00
test/crimson/seastore: do not put braces around scalar initializer
this change silences the warning from clang like: src/test/crimson/seastore/onode_tree/test_value.h:152:12: warning: braces around scalar initializer [-Wbraced-scalar-init] return {static_cast<value_size_t>(size - sizeof(value_header_t))}; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
parent
bdc5b14743
commit
8e85261b80
@ -149,7 +149,7 @@ struct test_item_t {
|
||||
|
||||
value_size_t get_payload_size() const {
|
||||
assert(size > sizeof(value_header_t));
|
||||
return {static_cast<value_size_t>(size - sizeof(value_header_t))};
|
||||
return static_cast<value_size_t>(size - sizeof(value_header_t));
|
||||
}
|
||||
|
||||
void initialize(Transaction& t, TestValue& value) const {
|
||||
|
Loading…
Reference in New Issue
Block a user