From f12fcb1c9dec9db5f158cc2bdaab273412006bf5 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Fri, 31 Mar 2017 12:08:38 +0100 Subject: [PATCH] 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 --- src/egl/main/egllog.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) 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", }; -- 2.30.2