Fix warning with '--disable-rgui' and '--disable-easteregg'. (#7908)
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; ^~~
This commit is contained in:
parent
92e2221c2d
commit
5428d2a833
|
@ -135,4 +135,4 @@ HAVE_OSMESA=no # Off-screen Mesa rendering
|
||||||
HAVE_VIDEOPROCESSOR=auto # Enable video processor core
|
HAVE_VIDEOPROCESSOR=auto # Enable video processor core
|
||||||
HAVE_VIDEOCORE=auto # Broadcom Videocore 4 support
|
HAVE_VIDEOCORE=auto # Broadcom Videocore 4 support
|
||||||
HAVE_DRMINGW=no # DrMingw exception handler
|
HAVE_DRMINGW=no # DrMingw exception handler
|
||||||
HAVE_EASTEREGG=yes
|
HAVE_EASTEREGG=yes # Easter egg
|
||||||
|
|
|
@ -2590,10 +2590,12 @@ static enum runloop_state runloop_check_state(
|
||||||
bool focused = true;
|
bool focused = true;
|
||||||
bool pause_nonactive = settings->bools.pause_nonactive;
|
bool pause_nonactive = settings->bools.pause_nonactive;
|
||||||
bool fs_toggle_triggered = false;
|
bool fs_toggle_triggered = false;
|
||||||
static uint64_t seq = 0;
|
|
||||||
#ifdef HAVE_MENU
|
#ifdef HAVE_MENU
|
||||||
bool menu_driver_binding_state = menu_driver_is_binding_state();
|
bool menu_driver_binding_state = menu_driver_is_binding_state();
|
||||||
bool menu_is_alive = menu_driver_is_alive();
|
bool menu_is_alive = menu_driver_is_alive();
|
||||||
|
#ifdef HAVE_EASTEREGG
|
||||||
|
static uint64_t seq = 0;
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_LIBNX
|
#ifdef HAVE_LIBNX
|
||||||
|
@ -2908,8 +2910,9 @@ static enum runloop_state runloop_check_state(
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
#if defined(HAVE_MENU) && defined(HAVE_EASTEREGG)
|
||||||
seq = 0;
|
seq = 0;
|
||||||
|
#endif
|
||||||
if (runloop_idle)
|
if (runloop_idle)
|
||||||
return RUNLOOP_STATE_SLEEP;
|
return RUNLOOP_STATE_SLEEP;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue