Remove or disable remaining warnings

This commit is contained in:
Lephenixnoir 2021-09-15 08:18:09 +02:00
parent e9ce72512f
commit 6512fba2d2
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
4 changed files with 7 additions and 8 deletions

View File

@ -991,17 +991,12 @@ AM_drawFline
register int ay;
register int d;
static int fuck = 0;
// For debugging only
if ( fl->a.x < 0 || fl->a.x >= f_w
if ( fl->a.x < 0 || fl->a.x >= f_w
|| fl->a.y < 0 || fl->a.y >= f_h
|| fl->b.x < 0 || fl->b.x >= f_w
|| fl->b.y < 0 || fl->b.y >= f_h)
{
#ifdef CG_EMULATOR
printf("fuck %d \r", fuck++);
#endif //#ifdef CG_EMULATOR
return;
}

View File

@ -530,10 +530,14 @@ int CreateFileMapping(int fd, FileMapping *pMap)
pFileData = ReadNextSector(&fc, &iLength);
if(iLength <= 0)
break;
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstringop-overread"
if((iLength == FLASH_PAGE_SIZE)
? CGD_sector_memcmp(pFileData, pFragment, iLength)
: memcmp(pFileData, pFragment, iLength))
break;
#pragma GCC diagnostic pop
}
}
if(iLength < 0)

View File

@ -29,7 +29,7 @@
#endif
#include "m_swap.h"
#ifndef CG_EMULATOR
#if !defined(CG_EMULATOR) && !defined(__BIG_ENDIAN__)
#define __BIG_ENDIAN__
#endif

View File

@ -1150,7 +1150,7 @@ int EV_DoDonut(line_t* line)
s2 = getNextSector(s1->lines[0],s1);
for (i = 0;i < s2->linecount;i++)
{
if ( (!s2->lines[i]->flags & ML_TWOSIDED) || (s2->lines[i]->backsector == s1) )
if ( (!(s2->lines[i]->flags & ML_TWOSIDED)) || (s2->lines[i]->backsector == s1) )
continue;
s3 = s2->lines[i]->backsector;