[Mesa-dev] [PATCH] dri/common: use designated initializers for OptConfElems
Eric Engestrom
eric.engestrom at imgtec.com
Wed Jul 19 12:11:22 UTC 2017
On Wednesday, 2017-07-19 13:01:00 +0100, Emil Velikov wrote:
> From: Emil Velikov <emil.velikov at collabora.com>
>
> 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 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.13.0
>
More information about the mesa-dev
mailing list