From: Emil Velikov <emil.veli...@collabora.com> All the compilers used to build Mesa support them.
Signed-off-by: Emil Velikov <emil.veli...@collabora.com> --- 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 c1e61f9b6c9..917aae3134e 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.12.2 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev