mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 18:32:44 +00:00
Silence some unused variable warnings
This commit is contained in:
parent
c76cb77202
commit
ac4adabeb9
6
deps/rcheevos/src/rhash/hash.c
vendored
6
deps/rcheevos/src/rhash/hash.c
vendored
@ -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");
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user