From 05149cd4dc3896103a58903f635dc42135c53d96 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Mon, 11 Jul 2022 16:09:02 -0400 Subject: Fix a couple of warnings uncovered by GCC12 Change-Id: Ib628a27bfc6f95a822e46b931ccfbed90f41b122 --- lib/rbcodec/codecs/libgme/blip_buffer.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/rbcodec/codecs/libgme/blip_buffer.c') diff --git a/lib/rbcodec/codecs/libgme/blip_buffer.c b/lib/rbcodec/codecs/libgme/blip_buffer.c index ba0a6558d2..9aaa9d2482 100644 --- a/lib/rbcodec/codecs/libgme/blip_buffer.c +++ b/lib/rbcodec/codecs/libgme/blip_buffer.c @@ -53,7 +53,9 @@ void Blip_clear( struct Blip_Buffer* this ) this->reader_accum_ = 0; this->modified = false; +#if 0 // this is redundant as buffer is static and triggers -Waddress if ( this->buffer_ ) +#endif { int count = (entire_buffer ? this->buffer_size_ : Blip_samples_avail( this )); memset( this->buffer_, 0, (count + blip_buffer_extra_) * sizeof (delta_t) ); -- cgit v1.2.3