Silence warnings

This commit is contained in:
twinaphex 2016-07-31 14:29:33 +02:00
parent 070223e0b5
commit 10a9effc1d
3 changed files with 15 additions and 14 deletions

View File

@ -2333,6 +2333,7 @@ static bool check_shader_compatibility(enum file_path_enum enum_idx)
*/ */
bool config_load_shader_preset(void) bool config_load_shader_preset(void)
{ {
enum file_path_enum idx;
char shader_directory[PATH_MAX_LENGTH] = {0}; /* path to the directory containing retroarch.cfg (prefix) */ char shader_directory[PATH_MAX_LENGTH] = {0}; /* path to the directory containing retroarch.cfg (prefix) */
char core_path[PATH_MAX_LENGTH] = {0}; /* final path for core-specific configuration (prefix+suffix) */ char core_path[PATH_MAX_LENGTH] = {0}; /* final path for core-specific configuration (prefix+suffix) */
char game_path[PATH_MAX_LENGTH] = {0}; /* final path for game-specific configuration (prefix+suffix) */ char game_path[PATH_MAX_LENGTH] = {0}; /* final path for game-specific configuration (prefix+suffix) */
@ -2342,7 +2343,6 @@ bool config_load_shader_preset(void)
global_t *global = global_get_ptr(); global_t *global = global_get_ptr();
settings_t *settings = config_get_ptr(); settings_t *settings = config_get_ptr();
rarch_system_info_t *system = NULL; rarch_system_info_t *system = NULL;
int idx;
runloop_ctl(RUNLOOP_CTL_SYSTEM_INFO_GET, &system); runloop_ctl(RUNLOOP_CTL_SYSTEM_INFO_GET, &system);

View File

@ -201,11 +201,12 @@ void IMAGE_CORE_PREFIX(retro_cheat_set)(unsigned a, bool b, const char * c)
static bool imageviewer_load(const char *path, int image_index) static bool imageviewer_load(const char *path, int image_index)
{ {
#ifdef HAVE_STB_IMAGE
int comp; int comp;
#endif
imageviewer_free_image(); imageviewer_free_image();
(void)comp;
#ifdef HAVE_STB_IMAGE #ifdef HAVE_STB_IMAGE
image_buffer = (uint32_t*)stbi_load( image_buffer = (uint32_t*)stbi_load(
path, path,

View File

@ -1591,22 +1591,22 @@ static uintptr_t xmb_icon_get_id(xmb_handle_t *xmb,
case FILE_TYPE_RPL_ENTRY: case FILE_TYPE_RPL_ENTRY:
if (core_node) if (core_node)
return core_node->content_icon; return core_node->content_icon;
else
switch (xmb->categories.selection_ptr) switch (xmb->categories.selection_ptr)
{ {
#ifdef HAVE_IMAGEVIEWER #ifdef HAVE_IMAGEVIEWER
case XMB_SYSTEM_TAB_IMAGES: case XMB_SYSTEM_TAB_IMAGES:
return xmb->textures.list[XMB_TEXTURE_IMAGE]; return xmb->textures.list[XMB_TEXTURE_IMAGE];
#endif #endif
#ifdef HAVE_FFMPEG #ifdef HAVE_FFMPEG
case XMB_SYSTEM_TAB_MUSIC: case XMB_SYSTEM_TAB_MUSIC:
return xmb->textures.list[XMB_TEXTURE_MUSIC]; return xmb->textures.list[XMB_TEXTURE_MUSIC];
case XMB_SYSTEM_TAB_VIDEO: case XMB_SYSTEM_TAB_VIDEO:
return xmb->textures.list[XMB_TEXTURE_MOVIE]; return xmb->textures.list[XMB_TEXTURE_MOVIE];
#endif #endif
default: default:
return xmb->textures.list[XMB_TEXTURE_FILE]; break;
} }
return xmb->textures.list[XMB_TEXTURE_FILE]; return xmb->textures.list[XMB_TEXTURE_FILE];
case FILE_TYPE_CARCHIVE: case FILE_TYPE_CARCHIVE:
return xmb->textures.list[XMB_TEXTURE_ZIP]; return xmb->textures.list[XMB_TEXTURE_ZIP];