(PS3) Cleanup warnings

This commit is contained in:
twinaphex 2016-05-26 06:41:28 +02:00
parent c8f1125e20
commit 20cc877ad3
4 changed files with 10 additions and 7 deletions

View File

@ -134,10 +134,9 @@ static int driver_find_index(const char * label, const char *drv)
{ {
unsigned i; unsigned i;
char str[256]; char str[256];
const void *obj = NULL;
for (i = 0; (obj = (const void*) for (i = 0;
find_driver_nonempty(label, i, str, sizeof(str))) != NULL; i++) find_driver_nonempty(label, i, str, sizeof(str)) != NULL; i++)
{ {
if (string_is_empty(str)) if (string_is_empty(str))
break; break;

View File

@ -167,7 +167,6 @@ static void dump_content(RFILE *file, const void *frame,
if(pad != 0) if(pad != 0)
filestream_write(file, &zeros, pad); filestream_write(file, &zeros, pad);
} }
return;
} }
break; break;
case RBMP_SOURCE_TYPE_ARGB8888: case RBMP_SOURCE_TYPE_ARGB8888:

View File

@ -113,13 +113,15 @@ bool image_transfer_start(void *data, enum image_type_enum type)
case IMAGE_TYPE_JPEG: case IMAGE_TYPE_JPEG:
#ifdef HAVE_RJPEG #ifdef HAVE_RJPEG
return true; return true;
#endif #else
break; break;
#endif
case IMAGE_TYPE_TGA: case IMAGE_TYPE_TGA:
#ifdef HAVE_RTGA #ifdef HAVE_RTGA
return true; return true;
#endif #else
break; break;
#endif
case IMAGE_TYPE_BMP: case IMAGE_TYPE_BMP:
return true; return true;
case IMAGE_TYPE_NONE: case IMAGE_TYPE_NONE:

View File

@ -1650,8 +1650,9 @@ error:
static bool command_event_cmd_exec(void *data) static bool command_event_cmd_exec(void *data)
{ {
char *fullpath;
#if defined(HAVE_DYNAMIC)
content_ctx_info_t content_info; content_ctx_info_t content_info;
char *fullpath = NULL;
content_info.argc = 0; content_info.argc = 0;
content_info.argv = NULL; content_info.argv = NULL;
@ -1660,8 +1661,10 @@ static bool command_event_cmd_exec(void *data)
content_info.environ_get = menu_content_environment_get; content_info.environ_get = menu_content_environment_get;
#else #else
content_info.environ_get = NULL; content_info.environ_get = NULL;
#endif
#endif #endif
fullpath = NULL;
runloop_ctl(RUNLOOP_CTL_GET_CONTENT_PATH, &fullpath); runloop_ctl(RUNLOOP_CTL_GET_CONTENT_PATH, &fullpath);
if (fullpath != data) if (fullpath != data)