Silence xcode warnings - unused variables

This commit is contained in:
Twinaphex 2019-04-20 16:36:01 +02:00
parent 26bbf46054
commit c9cfd1cd89
3 changed files with 3 additions and 12 deletions

View File

@ -1854,7 +1854,6 @@ static int action_ok_playlist_entry(const char *path,
&& string_is_equal(entry->core_name, file_path_str(FILE_PATH_DETECT)))
{
core_info_ctx_find_t core_info;
const char *entry_path = NULL;
const char *path_base =
path_basename(menu->db_playlist_file);
bool found_associated_core =
@ -2086,7 +2085,6 @@ static int action_ok_lookup_setting(const char *path,
static int action_ok_audio_add_to_mixer(const char *path,
const char *label, unsigned type, size_t idx, size_t entry_idx)
{
const char *entry_path = NULL;
playlist_t *tmp_playlist = playlist_get_cached();
const struct playlist_entry *entry = NULL;
@ -2108,7 +2106,6 @@ static int action_ok_audio_add_to_mixer(const char *path,
static int action_ok_audio_add_to_mixer_and_play(const char *path,
const char *label, unsigned type, size_t idx, size_t entry_idx)
{
const char *entry_path = NULL;
playlist_t *tmp_playlist = playlist_get_cached();
const struct playlist_entry *entry = NULL;
@ -3823,12 +3820,8 @@ default_action_ok_cmd_func(action_ok_show_wimp, CMD_EVENT_UI_COMP
static int action_ok_reset_core_association(const char *path,
const char *label, unsigned type, size_t idx, size_t entry_idx)
{
const char *tmp_path = NULL;
menu_handle_t *menu = NULL;
playlist_t *tmp_playlist = playlist_get_cached();
if (!tmp_playlist)
return 0;
if (!menu_driver_ctl(RARCH_MENU_CTL_DRIVER_DATA_GET, &menu))
return menu_cbs_exit();

View File

@ -1771,8 +1771,7 @@ static int ozone_menu_iterate(menu_handle_t *menu, void *userdata, enum menu_act
if (!ozone->cursor_in_sidebar)
break;
tag = (uintptr_t)ozone;
tag = (uintptr_t)ozone;
new_selection = (ozone->categories_selection_ptr + 1);
if (new_selection >= ozone->system_tab_end + horizontal_list_size + 1)
@ -1787,8 +1786,7 @@ static int ozone_menu_iterate(menu_handle_t *menu, void *userdata, enum menu_act
if (!ozone->cursor_in_sidebar)
break;
tag = (uintptr_t)ozone;
tag = (uintptr_t)ozone;
new_selection = ozone->categories_selection_ptr - 1;
if (new_selection < 0)

View File

@ -826,7 +826,7 @@ static void handle_play_spectate(netplay_t *netplay, uint32_t client_num,
* one device, so share it */
if (netplay->device_share_modes[0])
{
device = 0;
device = 0;
share_mode = netplay->device_share_modes[0];
break;
}