[refactor] fix warings when compile with clang (#8069)

This commit is contained in:
Zhengguo Yang
2022-02-19 11:29:02 +08:00
committed by GitHub
parent 8892780091
commit 50864aca7d
200 changed files with 1750 additions and 2617 deletions

View File

@ -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();