Fixed warning about {} initialisers.

This commit is contained in:
xorstream
2017-01-21 11:41:11 +11:00
parent 837d3787c0
commit df41c49e2d
5 changed files with 47 additions and 46 deletions

View File

@@ -1562,8 +1562,9 @@ static void x86_cpu_get_feature_words(struct uc_struct *uc, Object *obj, Visitor
uint32_t *array = (uint32_t *)opaque;
FeatureWord w;
Error *err = NULL;
X86CPUFeatureWordInfo word_infos[FEATURE_WORDS] = { 0 };
X86CPUFeatureWordInfoList list_entries[FEATURE_WORDS] = { 0 };
// These all get setup below, so no need to initialise them here.
X86CPUFeatureWordInfo word_infos[FEATURE_WORDS];
X86CPUFeatureWordInfoList list_entries[FEATURE_WORDS];
X86CPUFeatureWordInfoList *list = NULL;
for (w = 0; w < FEATURE_WORDS; w++) {