[refactor] fix warings when compile with clang (#8069)
This commit is contained in:
@ -46,7 +46,7 @@ Status type_check(PrimitiveType type) {
|
||||
case TYPE_NULL:
|
||||
break;
|
||||
default:
|
||||
return Status::InvalidArgument("Type not implemented: " + type);
|
||||
return Status::InvalidArgument(fmt::format("Type not implemented: {}", type));
|
||||
}
|
||||
|
||||
return Status::OK();
|
||||
@ -91,7 +91,7 @@ Status CollectionValue::init_collection(ObjectPool* pool, uint32_t size, Primiti
|
||||
}
|
||||
|
||||
val->_length = size;
|
||||
val->_null_signs = pool->add_array(new bool[size]{0});
|
||||
val->_null_signs = pool->add_array(new bool[size] {0});
|
||||
val->_data = pool->add_array(new uint8_t[size * sizeof_type(child_type)]);
|
||||
|
||||
return Status::OK();
|
||||
|
||||
Reference in New Issue
Block a user