Skip to content

Commit b3a2f80

Browse files
committed
Remove unused variables/warnings
1 parent 43abea5 commit b3a2f80

4 files changed

Lines changed: 3 additions & 14 deletions

File tree

command.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -808,10 +808,10 @@ bool command_seek_replay(command_t *cmd, const char *arg)
808808
{
809809
#ifdef HAVE_BSV_MOVIE
810810
char reply[32];
811-
bool ret = true;
812811
char *endptr;
813-
size_t _len;
814-
int64_t frame = strtoll(arg, &endptr, 10), target_frame;
812+
size_t _len;
813+
bool ret = true;
814+
int64_t frame = strtoll(arg, &endptr, 10);
815815
input_driver_state_t *input_st = input_state_get_ptr();
816816
if (!endptr)
817817
ret = false;

input/bsv/bsvmovie.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,6 @@ bool bsv_movie_load_checkpoint(bsv_movie_t *handle, uint8_t compression, uint8_t
316316
input_driver_state_t *input_st = input_state_get_ptr();
317317
uint32_t compressed_encoded_size, encoded_size, size;
318318
uint8_t *compressed_data = NULL, *encoded_data = NULL;
319-
retro_ctx_serialize_info_t serial_info;
320319
bool ret = true;
321320
if (intfstream_read(handle->file, &(size),
322321
sizeof(uint32_t)) != sizeof(uint32_t))
@@ -676,8 +675,6 @@ bool bsv_movie_read_next_events(bsv_movie_t *handle, replay_checkpoint_behavior
676675
else if (next_frame_type == REPLAY_TOKEN_CHECKPOINT_FRAME)
677676
{
678677
uint64_t size;
679-
uint8_t *state;
680-
retro_ctx_serialize_info_t serial_info;
681678
if (intfstream_read(handle->file, &(size), sizeof(uint64_t)) != sizeof(uint64_t))
682679
{
683680
RARCH_ERR("[Replay] Replay ran out of frames\n");
@@ -1685,7 +1682,6 @@ bool movie_find_checkpoint_before(bsv_movie_t *movie, int64_t frame, bool consid
16851682
bool paused = !!(runloop_st->flags & RUNLOOP_FLAG_PAUSED) || consider_paused;
16861683
const int64_t prev_skip_min_distance = 60;
16871684
int64_t target_frame = frame, cur_frame = 0;
1688-
bool ret = false;
16891685
int64_t initial_pos, cp_pos=-1, cp_frame=-1;
16901686
uint64_t frame_len;
16911687
uint8_t tok;
@@ -1740,7 +1736,6 @@ bool bsv_movie_seek_to_pos_impl(bsv_movie_t *movie, int64_t pos)
17401736
2. fix under "some previous replay" while recording
17411737
*/
17421738
int64_t movie_pos;
1743-
bool ret;
17441739
if (!movie || movie->version == 0)
17451740
return false;
17461741
movie_pos = intfstream_tell(movie->file);

menu/drivers/ozone.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3771,9 +3771,7 @@ static void ozone_thumbnail_bar_hide_end(void *userdata)
37713771

37723772
static bool ozone_is_main_menu_playlist(void *userdata)
37733773
{
3774-
ozone_handle_t *ozone = (ozone_handle_t*)userdata;
37753774
menu_entry_t entry;
3776-
37773775
MENU_ENTRY_INITIALIZE(entry);
37783776
menu_entry_get(&entry, 0, 0, NULL, true);
37793777
return entry.type == FILE_TYPE_RPL_ENTRY;

menu/menu_driver.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7998,10 +7998,6 @@ int generic_menu_entry_action(
79987998
if ( (menu_st->flags & MENU_ST_FLAG_PENDING_CLOSE_CONTENT)
79997999
|| (menu_st->flags & MENU_ST_FLAG_PENDING_ENV_SHUTDOWN_FLUSH))
80008000
{
8001-
const char *content_path = (menu_st->flags
8002-
& MENU_ST_FLAG_PENDING_ENV_SHUTDOWN_FLUSH)
8003-
? menu_st->pending_env_shutdown_content_path
8004-
: path_get(RARCH_PATH_CONTENT);
80058001
const char *deferred_path = menu ? menu->deferred_path : NULL;
80068002
const char *flush_target = msg_hash_to_str(MENU_ENUM_LABEL_MAIN_MENU);
80078003
size_t stack_offset = 1;

0 commit comments

Comments
 (0)