From f8522090400f740f09f7dd048a2e559a4dac0963 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 19 Jan 2020 06:04:37 +0100 Subject: [PATCH] Silence some unused variable warnings on some targets --- gfx/common/egl_common.c | 1 - menu/widgets/menu_widgets.c | 4 ++++ retroarch.c | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gfx/common/egl_common.c b/gfx/common/egl_common.c index 2b6905b63a..791f1b86e2 100644 --- a/gfx/common/egl_common.c +++ b/gfx/common/egl_common.c @@ -564,7 +564,6 @@ bool egl_init_context(egl_ctx_data_t *egl, EGLint *count, const EGLint *attrib_ptr, egl_accept_config_cb_t cb) { - int config_index = -1; EGLDisplay dpy = get_egl_display(platform, display_data); if (dpy == EGL_NO_DISPLAY) diff --git a/menu/widgets/menu_widgets.c b/menu/widgets/menu_widgets.c index dd6a4d9df9..8ade8c4300 100644 --- a/menu/widgets/menu_widgets.c +++ b/menu/widgets/menu_widgets.c @@ -56,11 +56,15 @@ static float msg_queue_info[16] = COLOR_HEX_TO_FLOAT(0x12ACF8, 1.0f); static float msg_queue_task_progress_1[16] = COLOR_HEX_TO_FLOAT(0x397869, 1.0f); /* Color of first progress bar in a task message */ static float msg_queue_task_progress_2[16] = COLOR_HEX_TO_FLOAT(0x317198, 1.0f); /* Color of second progress bar in a task message (for multiple tasks with same message) */ +#if 0 static float color_task_progress_bar[16] = COLOR_HEX_TO_FLOAT(0x22B14C, 1.0f); +#endif static unsigned text_color_info = 0xD8EEFFFF; +#if 0 static unsigned text_color_success = 0x22B14CFF; static unsigned text_color_error = 0xC23B22FF; +#endif static unsigned text_color_faint = 0x878787FF; static float volume_bar_background[16] = COLOR_HEX_TO_FLOAT(0x1A1A1A, 1.0f); diff --git a/retroarch.c b/retroarch.c index be5515feeb..735239a4d3 100644 --- a/retroarch.c +++ b/retroarch.c @@ -1120,7 +1120,9 @@ static bool runloop_autosave = false; static bool runloop_max_frames_screenshot = false; static bool log_file_created = false; static bool log_file_override_active = false; +#ifdef HAVE_RUNAHEAD static bool has_variable_update = false; +#endif #if defined(HAVE_CG) || defined(HAVE_GLSL) || defined(HAVE_SLANG) || defined(HAVE_HLSL) static bool shader_presets_need_reload = true; #endif