I'm trying to fix all warnings in a source code I've taken over from somebody else. In the code there is a function inside which the following field is initialized:
The bit of code above produces two warnings:
1. missing braces around initializer
2. near initialization for 'query2[0].Sym'
What is actually wrong here, and how do I best get rid of the warnings?
struct Elf32_SymbolQuery query2[] = { { ELF32_SQ_BYNAME, "EditEncoderProfile", 0, 0, FALSE, 0, 0 }, { ELF32_SQ_BYNAME, "EncoderControl", 0, 0, FALSE, 0, 0 }, };