Fix minor compiler warnings

This commit is contained in:
bnnm 2018-12-08 00:33:07 +01:00
parent 60945577c0
commit 9291e33312
4 changed files with 7 additions and 4 deletions

View File

@ -396,6 +396,9 @@ VGMSTREAM * init_vgmstream_bnk_sony(STREAMFILE *streamFile) {
vgmstream->loop_start_sample = loop_start;
vgmstream->loop_end_sample = loop_end;
break;
default:
goto fail;
}
if (name_offset)

View File

@ -808,7 +808,7 @@ static int parse_num(STREAMFILE * streamFile, txth_header * txth, const char * v
if (sscanf(val, hex ? "@%x" : "@%u", &offset) != 1) goto fail;
}
if (offset < 0 || offset > get_streamfile_size(streamFile))
if (/*offset < 0 ||*/ offset > get_streamfile_size(streamFile))
goto fail;
if (ed1 == 'B' && ed2 == 'E')

View File

@ -25,8 +25,8 @@ typedef struct {
size_t entry_count;
size_t entry_max;
size_t loop_start_segment;
size_t loop_end_segment;
uint32_t loop_start_segment;
uint32_t loop_end_segment;
size_t is_layered;
} txtp_header;

View File

@ -2188,7 +2188,7 @@ int vgmstream_do_loop(VGMSTREAM * vgmstream) {
/* Write a description of the stream into array pointed by desc, which must be length bytes long.
* Will always be null-terminated if length > 0 */
void describe_vgmstream(VGMSTREAM * vgmstream, char * desc, int length) {
#define TEMPSIZE 256
#define TEMPSIZE (256+32)
char temp[TEMPSIZE];
const char* description;