fix lot of gcc reported issues

This commit is contained in:
Ondřej Novák 2025-01-27 19:32:15 +01:00
parent 669f72908e
commit b6c5658b48
20 changed files with 493 additions and 334 deletions

View file

@ -275,7 +275,6 @@ void heap_error(size_t size) //heap system
char repeat=0,did=0;
THANDLE_DATA *lastblock=NULL;
char *last_free=NULL;
int num;
do
{
maxcounter=0;
@ -295,14 +294,13 @@ void heap_error(size_t size) //heap system
if (last_free!=NULL)
{
d=(char *)h->blockdata-last_free;
if (d<max) sh=h,max=d,did=1,num=i*BK_MINOR_HANDLES+j;
if (d<max) sh=h,max=d,did=1;
}
else if (c>maxcounter)
{
maxcounter=c;
sh=h;
did=1;
num=i*BK_MINOR_HANDLES+j;
}
}
}