Silence some unused variable warnings

This commit is contained in:
twinaphex 2021-08-12 17:00:24 +02:00
parent c76cb77202
commit ac4adabeb9
2 changed files with 3 additions and 6 deletions

View File

@ -1151,7 +1151,6 @@ static int rc_hash_psx(char hash[33], const char* path)
void* track_handle;
uint32_t sector;
unsigned size;
size_t num_read;
int result = 0;
md5_state_t md5;
@ -1171,7 +1170,7 @@ static int rc_hash_psx(char hash[33], const char* path)
{
rc_hash_error("Could not locate primary executable");
}
else if ((num_read = rc_cd_read_sector(track_handle, sector, buffer, sizeof(buffer))) < sizeof(buffer))
else if ((rc_cd_read_sector(track_handle, sector, buffer, sizeof(buffer))) < sizeof(buffer))
{
rc_hash_error("Could not read primary executable");
}
@ -1216,7 +1215,6 @@ static int rc_hash_ps2(char hash[33], const char* path)
void* track_handle;
uint32_t sector;
unsigned size;
size_t num_read;
int result = 0;
md5_state_t md5;
@ -1229,7 +1227,7 @@ static int rc_hash_ps2(char hash[33], const char* path)
{
rc_hash_error("Could not locate primary executable");
}
else if ((num_read = rc_cd_read_sector(track_handle, sector, buffer, sizeof(buffer))) < sizeof(buffer))
else if ((rc_cd_read_sector(track_handle, sector, buffer, sizeof(buffer))) < sizeof(buffer))
{
rc_hash_error("Could not read primary executable");
}

View File

@ -328,7 +328,6 @@ audio_mixer_sound_t* audio_mixer_load_wav(void *buffer, int32_t size)
#ifdef HAVE_RWAV
/* WAV data */
rwav_t wav;
enum rwav_state rwav_ret;
/* WAV samples converted to float */
float* pcm = NULL;
size_t samples = 0;
@ -342,7 +341,7 @@ audio_mixer_sound_t* audio_mixer_load_wav(void *buffer, int32_t size)
wav.subchunk2size = 0;
wav.samples = NULL;
if ((rwav_ret = rwav_load(&wav, buffer, size)) != RWAV_ITERATE_DONE)
if ((rwav_load(&wav, buffer, size)) != RWAV_ITERATE_DONE)
return NULL;
samples = wav.numsamples * 2;