Fix multiple CXX warning

This commit is contained in:
natinusala 2019-05-04 22:24:59 +02:00
parent 95c585e864
commit 872e8ffb99
3 changed files with 4 additions and 4 deletions

View File

@ -2139,7 +2139,7 @@ static bool ozone_get_load_content_animation_data(void *userdata, menu_texture_i
if (ozone->categories_selection_ptr > ozone->system_tab_end)
{
ozone_node_t *node = file_list_get_userdata_at_offset(ozone->horizontal_list, ozone->categories_selection_ptr - ozone->system_tab_end-1);
ozone_node_t *node = (ozone_node_t*) file_list_get_userdata_at_offset(ozone->horizontal_list, ozone->categories_selection_ptr - ozone->system_tab_end-1);
*icon = node->icon;
*playlist_name = node->console_name;

View File

@ -5638,7 +5638,7 @@ static bool xmb_get_load_content_animation_data(void *userdata, menu_texture_ite
if (xmb->categories_selection_ptr > xmb->system_tab_end)
{
xmb_node_t *node = file_list_get_userdata_at_offset(xmb->horizontal_list, xmb->categories_selection_ptr - xmb->system_tab_end-1);
xmb_node_t *node = (xmb_node_t*) file_list_get_userdata_at_offset(xmb->horizontal_list, xmb->categories_selection_ptr - xmb->system_tab_end-1);
*icon = node->icon;
*playlist_name = xmb->title_name;

View File

@ -210,7 +210,7 @@ enum menu_widgets_icon
MENU_WIDGETS_ICON_LAST
};
static char *menu_widgets_icons_names[MENU_WIDGETS_ICON_LAST] = {
static const char *menu_widgets_icons_names[MENU_WIDGETS_ICON_LAST] = {
"menu_volume_med.png",
"menu_volume_max.png",
"menu_volume_min.png",
@ -1609,7 +1609,7 @@ void menu_widgets_frame(video_frame_info_t *video_info)
/* FPS Counter */
if (video_info->fps_show || video_info->framecount_show)
{
char *text = *menu_widgets_fps_text == '\0' ? "n/a" : menu_widgets_fps_text;
const char *text = *menu_widgets_fps_text == '\0' ? "n/a" : menu_widgets_fps_text;
int text_width = font_driver_get_message_width(font_regular, text, strlen(text), 1.0f);
int total_width = text_width + simple_widget_padding * 2;