From: Emil Velikov Date: Tue, 18 Jul 2017 11:22:21 +0000 (+0100) Subject: dri/common: use designated initializers for OptConfElems X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b359957469008665018e3cf2d44af8cdead01b22;p=mesa.git dri/common: use designated initializers for OptConfElems Signed-off-by: Emil Velikov Reviewed-by: Eric Engestrom --- diff --git a/src/mesa/drivers/dri/common/xmlconfig.c b/src/mesa/drivers/dri/common/xmlconfig.c index d4649370ee2..31c5447e615 100644 --- a/src/mesa/drivers/dri/common/xmlconfig.c +++ b/src/mesa/drivers/dri/common/xmlconfig.c @@ -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. */