(OSX) Silence warnings

This commit is contained in:
Twinaphex 2019-04-03 13:31:45 +02:00
parent 03381da506
commit 052137b027
3 changed files with 4 additions and 5 deletions

View File

@ -877,7 +877,10 @@ end:
#elif defined(__MACH__)
if (!name)
return;
sysctlbyname("machdep.cpu.brand_string", name, &len, NULL, 0);
{
size_t len_size = len;
sysctlbyname("machdep.cpu.brand_string", name, &len_size, NULL, 0);
}
#else
if (!name)
return;

View File

@ -371,7 +371,6 @@ unsigned ozone_count_lines(const char *str)
static void ozone_update_thumbnail_path(void *data, unsigned i, char pos)
{
settings_t *settings = config_get_ptr();
ozone_handle_t *ozone = (ozone_handle_t*)data;
const char *core_name = NULL;
@ -2169,8 +2168,6 @@ static int ozone_pointer_tap(void *userdata,
menu_file_list_cbs_t *cbs,
menu_entry_t *entry, unsigned action)
{
ozone_handle_t *ozone = (ozone_handle_t*) userdata;
size_t selection = menu_navigation_get_selection();
if (ptr == selection && cbs && cbs->action_select)
return (unsigned)menu_entry_action(entry, (unsigned)selection, MENU_ACTION_SELECT);

View File

@ -1272,7 +1272,6 @@ static int menu_displaylist_parse_playlist(menu_displaylist_info_t *info,
playlist_t *playlist, const char *path_playlist, bool is_collection)
{
unsigned i;
size_t selection = menu_navigation_get_selection();
size_t list_size = playlist_size(playlist);
settings_t *settings = config_get_ptr();
bool is_rgui = string_is_equal(settings->arrays.menu_driver, "rgui");