diff options
author | Emil Velikov <[email protected]> | 2017-07-18 12:22:21 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-07-19 13:28:54 +0100 |
commit | b359957469008665018e3cf2d44af8cdead01b22 (patch) | |
tree | 787aea7e7024ae6fc2170fdedffa5e79606aebba /src/mesa/drivers/dri/common/xmlconfig.c | |
parent | 107b9c70d04c381d5517582d67925a29eac6eac4 (diff) |
dri/common: use designated initializers for OptConfElems
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/common/xmlconfig.c')
-rw-r--r-- | src/mesa/drivers/dri/common/xmlconfig.c | 5 |
1 files changed, 4 insertions, 1 deletions
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. */ |