From: Emil Velikov Date: Fri, 31 Mar 2017 11:08:38 +0000 (+0100) Subject: egl: use designated initializers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f12fcb1c9dec9db5f158cc2bdaab273412006bf5;p=mesa.git egl: use designated initializers All the compilers used to build Mesa support them. Signed-off-by: Emil Velikov Reviewed-by: Eric Engestrom Reviewed-by: Chad Versace --- diff --git a/src/egl/main/egllog.c b/src/egl/main/egllog.c index 7af381830ed..bf0ee017b89 100644 --- a/src/egl/main/egllog.c +++ b/src/egl/main/egllog.c @@ -72,17 +72,16 @@ static struct { EGLBoolean initialized; EGLint level; } logging = { - _MTX_INITIALIZER_NP, - EGL_FALSE, - FALLBACK_LOG_LEVEL, + .mutex = _MTX_INITIALIZER_NP, + .initialized = EGL_FALSE, + .level = FALLBACK_LOG_LEVEL, }; static const char *level_strings[] = { - /* the order is important */ - "fatal", - "warning", - "info", - "debug", + [_EGL_FATAL] = "fatal", + [_EGL_WARNING] = "warning", + [_EGL_INFO] = "info", + [_EGL_DEBUG] = "debug", };