Skip to content

Commit

Permalink
Fix warning with '--disable-rgui' and '--disable-easteregg'. (libretr…
Browse files Browse the repository at this point in the history
…o#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;
                    ^~~
  • Loading branch information
orbea authored and bparker06 committed Jan 6, 2019
1 parent 92e2221 commit 5428d2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion qb/config.params.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 5 additions & 2 deletions retroarch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 5428d2a

Please sign in to comment.