From 9d76ad2fac5b6558d63656e9a29cda394bb4ec80 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Thu, 19 Jul 2012 11:08:02 -0700 Subject: [PATCH] egl_dri2: Silence warnings about missing initializers egl_dri2.c: At top level: egl_dri2.c:325:4: warning: missing initializer [-Wmissing-field-initializers] egl_dri2.c:325:4: warning: (near initialization for 'swrast_driver_extensions[2].version') [-Wmissing-field-initializers] egl_dri2.c:330:4: warning: missing initializer [-Wmissing-field-initializers] egl_dri2.c:330:4: warning: (near initialization for 'swrast_core_extensions[1].version') [-Wmissing-field-initializers] Signed-off-by: Ian Romanick Reviewed-by: Kenneth Graunke --- src/egl/drivers/dri2/egl_dri2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index 4cd2d138020..4cd19a1c98b 100644 --- a/src/egl/drivers/dri2/egl_dri2.c +++ b/src/egl/drivers/dri2/egl_dri2.c @@ -322,12 +322,12 @@ static struct dri2_extension_match dri2_core_extensions[] = { static struct dri2_extension_match swrast_driver_extensions[] = { { __DRI_CORE, 1, offsetof(struct dri2_egl_display, core) }, { __DRI_SWRAST, 2, offsetof(struct dri2_egl_display, swrast) }, - { NULL } + { NULL, 0, 0 } }; static struct dri2_extension_match swrast_core_extensions[] = { { __DRI_TEX_BUFFER, 2, offsetof(struct dri2_egl_display, tex_buffer) }, - { NULL } + { NULL, 0, 0 } }; static EGLBoolean -- 2.30.2