mirror of
https://github.com/libretro/RetroArch
synced 2025-02-11 15:40:28 +00:00
(retroarch.c) Silence warnings 'value stored to runloop_st during its initialization
is never read'
This commit is contained in:
parent
736a3034bb
commit
b84416ac7c
10
retroarch.c
10
retroarch.c
@ -1303,7 +1303,6 @@ static void path_deinit_subsystem(runloop_state_t *runloop_st)
|
|||||||
size_t dir_get_size(enum rarch_dir_type type)
|
size_t dir_get_size(enum rarch_dir_type type)
|
||||||
{
|
{
|
||||||
struct rarch_state *p_rarch = &rarch_st;
|
struct rarch_state *p_rarch = &rarch_st;
|
||||||
runloop_state_t *runloop_st = runloop_state_get_ptr();
|
|
||||||
|
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
@ -1312,11 +1311,11 @@ size_t dir_get_size(enum rarch_dir_type type)
|
|||||||
case RARCH_DIR_SAVESTATE:
|
case RARCH_DIR_SAVESTATE:
|
||||||
return sizeof(p_rarch->dir_savestate);
|
return sizeof(p_rarch->dir_savestate);
|
||||||
case RARCH_DIR_CURRENT_SAVESTATE:
|
case RARCH_DIR_CURRENT_SAVESTATE:
|
||||||
return sizeof(runloop_st->savestate_dir);
|
return sizeof(runloop_state_get_ptr()->savestate_dir);
|
||||||
case RARCH_DIR_SAVEFILE:
|
case RARCH_DIR_SAVEFILE:
|
||||||
return sizeof(p_rarch->dir_savefile);
|
return sizeof(p_rarch->dir_savefile);
|
||||||
case RARCH_DIR_CURRENT_SAVEFILE:
|
case RARCH_DIR_CURRENT_SAVEFILE:
|
||||||
return sizeof(runloop_st->savefile_dir);
|
return sizeof(runloop_state_get_ptr()->savefile_dir);
|
||||||
case RARCH_DIR_NONE:
|
case RARCH_DIR_NONE:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -1365,18 +1364,17 @@ static void dir_clear_all(void)
|
|||||||
char *dir_get_ptr(enum rarch_dir_type type)
|
char *dir_get_ptr(enum rarch_dir_type type)
|
||||||
{
|
{
|
||||||
struct rarch_state *p_rarch = &rarch_st;
|
struct rarch_state *p_rarch = &rarch_st;
|
||||||
runloop_state_t *runloop_st = runloop_state_get_ptr();
|
|
||||||
|
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
case RARCH_DIR_SAVEFILE:
|
case RARCH_DIR_SAVEFILE:
|
||||||
return p_rarch->dir_savefile;
|
return p_rarch->dir_savefile;
|
||||||
case RARCH_DIR_CURRENT_SAVEFILE:
|
case RARCH_DIR_CURRENT_SAVEFILE:
|
||||||
return runloop_st->savefile_dir;
|
return runloop_state_get_ptr()->savefile_dir;
|
||||||
case RARCH_DIR_SAVESTATE:
|
case RARCH_DIR_SAVESTATE:
|
||||||
return p_rarch->dir_savestate;
|
return p_rarch->dir_savestate;
|
||||||
case RARCH_DIR_CURRENT_SAVESTATE:
|
case RARCH_DIR_CURRENT_SAVESTATE:
|
||||||
return runloop_st->savestate_dir;
|
return runloop_state_get_ptr()->savestate_dir;
|
||||||
case RARCH_DIR_SYSTEM:
|
case RARCH_DIR_SYSTEM:
|
||||||
return p_rarch->dir_system;
|
return p_rarch->dir_system;
|
||||||
case RARCH_DIR_NONE:
|
case RARCH_DIR_NONE:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user