mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
lint: Removing dead initializations #5410
This commit is contained in:
parent
b6300742d2
commit
09e0c96201
@ -368,11 +368,10 @@ static inline void typval_encode_list_start(EncodedData *const edata,
|
||||
const size_t len)
|
||||
FUNC_ATTR_ALWAYS_INLINE FUNC_ATTR_NONNULL_ALL
|
||||
{
|
||||
const Object obj = OBJECT_INIT;
|
||||
kv_push(edata->stack, ARRAY_OBJ(((Array) {
|
||||
.capacity = len,
|
||||
.size = 0,
|
||||
.items = xmalloc(len * sizeof(*obj.data.array.items)),
|
||||
.items = xmalloc(len * sizeof(*((Object *)NULL)->data.array.items)),
|
||||
})));
|
||||
}
|
||||
|
||||
@ -409,11 +408,10 @@ static inline void typval_encode_dict_start(EncodedData *const edata,
|
||||
const size_t len)
|
||||
FUNC_ATTR_ALWAYS_INLINE FUNC_ATTR_NONNULL_ALL
|
||||
{
|
||||
const Object obj = OBJECT_INIT;
|
||||
kv_push(edata->stack, DICTIONARY_OBJ(((Dictionary) {
|
||||
.capacity = len,
|
||||
.size = 0,
|
||||
.items = xmalloc(len * sizeof(*obj.data.dictionary.items)),
|
||||
.items = xmalloc(len * sizeof(*((Object *)NULL)->data.dictionary.items)),
|
||||
})));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user