mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 21:20:12 +01:00
dri/common: use designated initializers for OptConfElems
Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
This commit is contained in:
parent
107b9c70d0
commit
b359957469
1 changed files with 4 additions and 1 deletions
|
|
@ -776,7 +776,10 @@ enum OptConfElem {
|
|||
OC_APPLICATION = 0, OC_DEVICE, OC_DRICONF, OC_OPTION, OC_COUNT
|
||||
};
|
||||
static const XML_Char *OptConfElems[] = {
|
||||
"application", "device", "driconf", "option"
|
||||
[OC_APPLICATION] = "application",
|
||||
[OC_DEVICE] = "device",
|
||||
[OC_DRICONF] = "driconf",
|
||||
[OC_OPTION] = "option",
|
||||
};
|
||||
|
||||
/** \brief Parse attributes of a device element. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue