Silence MSVC warning

This commit is contained in:
libretroadmin 2023-02-19 12:20:56 +01:00
parent 78e935b7a9
commit 72ff8808af

View File

@ -2300,11 +2300,10 @@ bool command_event(enum event_command cmd, void *data)
#if HAVE_RUNAHEAD #if HAVE_RUNAHEAD
{ {
bool old_warn = settings->bools.preemptive_frames_hide_warnings; bool old_warn = settings->bools.preemptive_frames_hide_warnings;
bool old_inited = runloop_st->preempt_data; bool old_inited = runloop_st->preempt_data != NULL;
/* Toggle with warnings shown */ /* Toggle with warnings shown */
settings->bools.preemptive_frames_hide_warnings = false; settings->bools.preemptive_frames_hide_warnings = false;
settings->bools.preemptive_frames_enable = settings->bools.preemptive_frames_enable =
!(settings->bools.preemptive_frames_enable); !(settings->bools.preemptive_frames_enable);
command_event(CMD_EVENT_PREEMPT_UPDATE, NULL); command_event(CMD_EVENT_PREEMPT_UPDATE, NULL);