From 170b3e3e449c51433db3d923d947095242c54dd8 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 10 Feb 2021 00:49:41 +0100 Subject: [PATCH] Fix some warnings - values written to variables never read --- deps/dr/dr_flac.h | 2 -- deps/rcheevos/src/rhash/hash.c | 2 +- deps/stb/stb_truetype.h | 3 --- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/deps/dr/dr_flac.h b/deps/dr/dr_flac.h index 2ac68fb8b1..e6d05be5ca 100644 --- a/deps/dr/dr_flac.h +++ b/deps/dr/dr_flac.h @@ -5063,7 +5063,6 @@ drflac_uint64 drflac_read_s32(drflac* pFlac, drflac_uint64 samplesToRead, drflac alignedSamplesRead = alignedSampleCountPerChannel * channelCount; samplesRead += alignedSamplesRead; - samplesReadFromFrameSoFar += alignedSamplesRead; bufferOut += alignedSamplesRead; samplesToRead -= alignedSamplesRead; pFlac->currentFrame.samplesRemaining -= (unsigned int)alignedSamplesRead; @@ -5078,7 +5077,6 @@ drflac_uint64 drflac_read_s32(drflac* pFlac, drflac_uint64 samplesToRead, drflac } samplesRead += excessSamplesRead; - samplesReadFromFrameSoFar += excessSamplesRead; bufferOut += excessSamplesRead; samplesToRead -= excessSamplesRead; } diff --git a/deps/rcheevos/src/rhash/hash.c b/deps/rcheevos/src/rhash/hash.c index bf54166a2c..9de4cc34ba 100644 --- a/deps/rcheevos/src/rhash/hash.c +++ b/deps/rcheevos/src/rhash/hash.c @@ -1217,7 +1217,7 @@ static const char* rc_hash_get_first_item_from_playlist(const char* path) rc_file_close(file_handle); - ptr = start = buffer; + ptr = buffer; do { /* ignore empty and commented lines */ diff --git a/deps/stb/stb_truetype.h b/deps/stb/stb_truetype.h index 45ab281cf3..3011b6a7d4 100644 --- a/deps/stb/stb_truetype.h +++ b/deps/stb/stb_truetype.h @@ -1985,11 +1985,8 @@ static void stbtt__fill_active_edges_new(float *scanline, float *scanline_fill, t = x_bottom; x_bottom = x_top; x_top = t; - dx = -dx; dy = -dy; - t = x0; x0 = xb; - xb = t; } x1 = (int) x_top;