dri/common: use designated initializers for OptConfElems
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 18 Jul 2017 11:22:21 +0000 (12:22 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 19 Jul 2017 12:28:54 +0000 (13:28 +0100)
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/mesa/drivers/dri/common/xmlconfig.c

index d4649370ee2a730dc8ea3a390fa93f01f55ff2ee..31c5447e615752c903202476ffab6d4a5973e32f 100644 (file)
@@ -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. */