1
0
Fork 0
forked from len0rd/rockbox

Fix a couple of warnings uncovered by GCC12

Change-Id: Ib628a27bfc6f95a822e46b931ccfbed90f41b122
This commit is contained in:
Solomon Peachy 2022-07-11 16:09:02 -04:00
parent 4917f764bb
commit 05149cd4dc
2 changed files with 3 additions and 1 deletions

View file

@ -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) );