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:
Kefu Chai 2021-04-28 16:17:55 +08:00
parent bdc5b14743
commit 8e85261b80

View File

@ -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 {