diff --git a/libretro-common/net/net_http.c b/libretro-common/net/net_http.c index cd305a730e..3a06101067 100644 --- a/libretro-common/net/net_http.c +++ b/libretro-common/net/net_http.c @@ -863,7 +863,6 @@ bool net_http_update(struct http_t *state, size_t* progress, size_t* total) { if (state->error) { - newlen = -1; state->part = P_ERROR; state->status = -1; return true; diff --git a/libretro-common/streams/rzip_stream.c b/libretro-common/streams/rzip_stream.c index c6d7878a09..c41ca46bfd 100644 --- a/libretro-common/streams/rzip_stream.c +++ b/libretro-common/streams/rzip_stream.c @@ -717,7 +717,6 @@ error: static bool rzipstream_write_chunk(rzipstream_t *stream) { unsigned i; - int64_t length; uint8_t chunk_header_bytes[RZIP_CHUNK_HEADER_SIZE]; uint32_t deflate_read; uint32_t deflate_written; @@ -760,14 +759,14 @@ static bool rzipstream_write_chunk(rzipstream_t *stream) chunk_header_bytes[1] = (deflate_written >> 8) & 0xFF; chunk_header_bytes[0] = deflate_written & 0xFF; - if ((length = filestream_write( - stream->file, chunk_header_bytes, sizeof(chunk_header_bytes))) != + if (filestream_write( + stream->file, chunk_header_bytes, sizeof(chunk_header_bytes)) != RZIP_CHUNK_HEADER_SIZE) return false; /* Write compressed data to file */ - if ((length = filestream_write( - stream->file, stream->out_buf, deflate_written)) != deflate_written) + if (filestream_write( + stream->file, stream->out_buf, deflate_written) != deflate_written) return false; /* Reset input buffer pointer */ diff --git a/menu/drivers/ozone.c b/menu/drivers/ozone.c index 75333d476a..bd22f7dbe2 100644 --- a/menu/drivers/ozone.c +++ b/menu/drivers/ozone.c @@ -10417,7 +10417,6 @@ static void ozone_populate_entries(void *data, static void ozone_toggle(void *userdata, bool menu_on) { settings_t *settings = NULL; - bool tmp = false; ozone_handle_t *ozone = (ozone_handle_t*) userdata; if (!ozone) @@ -10434,7 +10433,7 @@ static void ozone_toggle(void *userdata, bool menu_on) } settings = config_get_ptr(); - if ((tmp = !menu_entries_ctl(MENU_ENTRIES_CTL_NEEDS_REFRESH, NULL))) + if ((!menu_entries_ctl(MENU_ENTRIES_CTL_NEEDS_REFRESH, NULL))) menu_driver_ctl(RARCH_MENU_CTL_SET_PREVENT_POPULATE, NULL); else menu_driver_ctl(RARCH_MENU_CTL_UNSET_PREVENT_POPULATE, NULL);