From 653c76c987abf6b719692a3fb3cb5e7d7b558838 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 26 Jun 2015 18:24:51 +0200 Subject: [PATCH] Fix Wayland warning --- gfx/drivers_context/wayland_ctx.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gfx/drivers_context/wayland_ctx.c b/gfx/drivers_context/wayland_ctx.c index 8ea9c16e95..40b251346f 100644 --- a/gfx/drivers_context/wayland_ctx.c +++ b/gfx/drivers_context/wayland_ctx.c @@ -599,10 +599,9 @@ static bool gfx_ctx_wl_set_video_mode(void *data, driver_t *driver = driver_get_ptr(); gfx_ctx_wayland_data_t *wl = (gfx_ctx_wayland_data_t*) driver->video_context_data; - struct sigaction sa = {{0}}; - EGLint egl_attribs[16]; - EGLint *attr; + struct sigaction sa = {{0}}; + EGLint *attr = NULL; sa.sa_handler = sighandler; sa.sa_flags = SA_RESTART;