Cleanup some warnings for C89_BUILD

This commit is contained in:
twinaphex 2018-03-29 15:20:43 +02:00
parent 1b0420807b
commit 4372db491a
2 changed files with 10 additions and 12 deletions

View File

@ -914,18 +914,20 @@ static bool dynamic_request_hw_context(enum retro_hw_context_type type,
case RETRO_HW_CONTEXT_DIRECT3D:
switch(major)
{
{
#ifdef HAVE_D3D9
case 9:
case 9:
RARCH_LOG("Requesting D3D9 context.\n");
break;
#endif
#ifdef HAVE_D3D11
case 11:
case 11:
RARCH_LOG("Requesting D3D11 context.\n");
break;
#endif
RARCH_LOG("Requesting D3D%i context.\n", major);
break;
default:
goto unknown;
}
default:
goto unknown;
}
break;
unknown:

View File

@ -3252,13 +3252,9 @@ int runloop_iterate(unsigned *sleep_ms)
/* Run Ahead Feature replaces the call to core_run in this loop */
if (settings->bools.run_ahead_enabled && settings->uints.run_ahead_frames > 0)
{
run_ahead(settings->uints.run_ahead_frames, settings->bools.run_ahead_secondary_instance);
}
else
{
core_run();
}
#ifdef HAVE_CHEEVOS
if (runloop_check_cheevos())