(OSX) Silence warnings

This commit is contained in:
Twinaphex 2017-05-16 08:44:17 +02:00
parent 0f91cf67fc
commit 808b973752
4 changed files with 5 additions and 5 deletions

View File

@ -2796,7 +2796,6 @@ static int cheevos_iterate(coro_t* coro)
{ {
buffer = (uint8_t*)DATA + LEN; buffer = (uint8_t*)DATA + LEN;
to_read = 4096; to_read = 4096;
num_read = 0;
if (to_read > COUNT) if (to_read > COUNT)
to_read = COUNT; to_read = COUNT;

View File

@ -293,11 +293,10 @@ static unsigned char *rbmp__bmp_load(rbmp__context *s, unsigned *x, unsigned *y,
} }
if (bpp == 16 || bpp == 32) if (bpp == 16 || bpp == 32)
{ {
mr = mg = mb = 0;
switch (compress) switch (compress)
{ {
case 0: case 0:
#if 0
if (bpp == 32) if (bpp == 32)
{ {
mr = 0xffu << 16; mr = 0xffu << 16;
@ -311,6 +310,7 @@ static unsigned char *rbmp__bmp_load(rbmp__context *s, unsigned *x, unsigned *y,
mg = 31u << 5; mg = 31u << 5;
mb = 31u << 0; mb = 31u << 0;
} }
#endif
break; break;
case 3: case 3:
mr = rbmp__get32le(s); mr = rbmp__get32le(s);
@ -323,6 +323,9 @@ static unsigned char *rbmp__bmp_load(rbmp__context *s, unsigned *x, unsigned *y,
return 0; return 0;
break; break;
default: default:
#if 0
mr = mg = mb = 0;
#endif
break; break;
} }

View File

@ -311,7 +311,6 @@ static bool rpng_save_image(const char *path,
{ {
filter = 4; filter = 4;
chosen_filtered = paeth_filtered; chosen_filtered = paeth_filtered;
min_sad = paeth_score;
} }
*encode_target++ = filter; *encode_target++ = filter;

View File

@ -3477,7 +3477,6 @@ finish:
{ {
char s[PATH_MAX_LENGTH]; char s[PATH_MAX_LENGTH];
int i = 0; int i = 0;
int j = 0;
int k = 0; int k = 0;
file_list_t *file_list = menu_entries_get_selection_buf_ptr(0); file_list_t *file_list = menu_entries_get_selection_buf_ptr(0);