diff --git a/deps/rcheevos/src/rhash/hash.c b/deps/rcheevos/src/rhash/hash.c index 64977e2563..81dc08fa67 100644 --- a/deps/rcheevos/src/rhash/hash.c +++ b/deps/rcheevos/src/rhash/hash.c @@ -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"); } diff --git a/libretro-common/audio/audio_mixer.c b/libretro-common/audio/audio_mixer.c index 92ac70c29f..1f4fa42e13 100644 --- a/libretro-common/audio/audio_mixer.c +++ b/libretro-common/audio/audio_mixer.c @@ -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;