Mesa (master): dri/common: use designated initializers for OptConfElems

Emil Velikov evelikov at kemper.freedesktop.org
Wed Jul 19 12:32:14 UTC 2017


Module: Mesa
Branch: master
Commit: b359957469008665018e3cf2d44af8cdead01b22
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b359957469008665018e3cf2d44af8cdead01b22

Author: Emil Velikov <emil.velikov at collabora.com>
Date:   Tue Jul 18 12:22:21 2017 +0100

dri/common: use designated initializers for OptConfElems

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom at imgtec.com>

---

 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 d4649370ee..31c5447e61 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. */




More information about the mesa-commit mailing list