(OSX) Fix some warnings

This commit is contained in:
Twinaphex 2015-01-21 06:36:39 +01:00
parent b2c8254c06
commit f011924355
3 changed files with 7 additions and 4 deletions

View File

@ -369,8 +369,10 @@ http_retcode http_get(const char *filename,
char **pdata, int *plength, char *typebuf)
{
http_retcode ret;
char header[MAXBUF], *pc;
char header[MAXBUF], *pc = NULL;
int fd, n, length = -1;
(void)pc;
if (!pdata)
return ERRNULL;

View File

@ -48,8 +48,10 @@ typedef enum
ERR503 = 503, /* Service overloaded */
/* Succesful results */
OK201 = 201, /* Resource succesfully created */
OK200 = 200 /* Resource succesfully read */
OK201 = 201, /* Resource successfully created */
OK200 = 200, /* Resource successfully read */
OK0 = 0
} http_retcode;

View File

@ -2181,7 +2181,6 @@ static int deferred_push_core_manager_list(void *data, void *userdata,
{
#ifdef HAVE_NETPLAY
int len;
unsigned i;
char url[PATH_MAX_LENGTH];
#endif
char *buf = NULL;