From b359957469008665018e3cf2d44af8cdead01b22 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Tue, 18 Jul 2017 12:22:21 +0100 Subject: [PATCH] dri/common: use designated initializers for OptConfElems Signed-off-by: Emil Velikov Reviewed-by: Eric Engestrom --- src/mesa/drivers/dri/common/xmlconfig.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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. */ -- 2.30.2