Silence some LGTM warnings

This commit is contained in:
twinaphex 2021-03-24 14:00:10 +01:00
parent 63bca35369
commit 19e0250e4e
4 changed files with 6 additions and 8 deletions

View File

@ -3033,12 +3033,12 @@ static bool shared_memorycards = false;
static bool has_new_geometry = false;
static bool has_new_timing = false;
extern void PSXDitherApply(bool);
static void check_variables(bool startup)
{
struct retro_variable var = {0};
extern void PSXDitherApply(bool);
#ifndef EMSCRIPTEN
var.key = BEETLE_OPT(cd_access_method);
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)

View File

@ -293,10 +293,12 @@ int GTE_StateAction(StateMem *sm, int load, int data_only)
};
int ret = MDFNSS_StateAction(sm, load, data_only, StateRegs, "GTE");
#if 0
if(load)
{
}
#endif
return(ret);
}

View File

@ -119,10 +119,12 @@ int SIO_StateAction(void *data, int load, int data_only)
};
int ret = MDFNSS_StateAction(data, load, data_only, StateRegs, "SIO");
#if 0
if(load)
{
}
#endif
return(ret);
}

View File

@ -112,12 +112,6 @@ int32_t smem_seek(StateMem *st, uint32_t offset, int whence)
return -1;
}
if(st->loc < 0)
{
st->loc = 0;
return -1;
}
return 0;
}