From 5428d2a83374485be43ad0245ffddff99a1265f1 Mon Sep 17 00:00:00 2001 From: orbea Date: Sun, 6 Jan 2019 14:21:15 -0800 Subject: [PATCH] Fix warning with '--disable-rgui' and '--disable-easteregg'. (#7908) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: retroarch.c: In function ‘runloop_check_state’: retroarch.c:2593:20: warning: variable ‘seq’ set but not used [-Wunused-but-set-variable] static uint64_t seq = 0; ^~~ --- qb/config.params.sh | 2 +- retroarch.c | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/qb/config.params.sh b/qb/config.params.sh index c67a19b06b..43f4bb0d99 100644 --- a/qb/config.params.sh +++ b/qb/config.params.sh @@ -135,4 +135,4 @@ HAVE_OSMESA=no # Off-screen Mesa rendering HAVE_VIDEOPROCESSOR=auto # Enable video processor core HAVE_VIDEOCORE=auto # Broadcom Videocore 4 support HAVE_DRMINGW=no # DrMingw exception handler -HAVE_EASTEREGG=yes +HAVE_EASTEREGG=yes # Easter egg diff --git a/retroarch.c b/retroarch.c index b723647ee6..52605a70bd 100644 --- a/retroarch.c +++ b/retroarch.c @@ -2590,10 +2590,12 @@ static enum runloop_state runloop_check_state( bool focused = true; bool pause_nonactive = settings->bools.pause_nonactive; bool fs_toggle_triggered = false; - static uint64_t seq = 0; #ifdef HAVE_MENU bool menu_driver_binding_state = menu_driver_is_binding_state(); bool menu_is_alive = menu_driver_is_alive(); +#ifdef HAVE_EASTEREGG + static uint64_t seq = 0; +#endif #endif #ifdef HAVE_LIBNX @@ -2908,8 +2910,9 @@ static enum runloop_state runloop_check_state( else #endif { +#if defined(HAVE_MENU) && defined(HAVE_EASTEREGG) seq = 0; - +#endif if (runloop_idle) return RUNLOOP_STATE_SLEEP; }