Fix all the remaining warnings (except the warn_unused_result stuff, pass -Wno-unused-result).

git-svn-id: https://svn.eduke32.com/eduke32@1766 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
plagman 2011-01-16 03:53:27 +00:00
parent 3da48fe31a
commit 15c94e6fa2
5 changed files with 7 additions and 3 deletions

View file

@ -88,7 +88,7 @@ endif
BASECFLAGS=$(debug) -W -Wall -Wimplicit -Werror-implicit-function-declaration \
-funsigned-char -fno-strict-aliasing -DNO_GCC_BUILTINS -D_FORTIFY_SOURCE=2 \
$(F_JUMP_TABLES)
$(F_JUMP_TABLES) -Wno-unused-result
BASECXXFLAGS= -fno-exceptions -fno-rtti
BASEASFLAGS=-s #-g

View file

@ -1917,7 +1917,7 @@ void overheadeditor(void)
dabuffer = (char *)ExtGetSectorCaption(i);
if (dabuffer[0] != 0)
{
int32_t vdisp;
int32_t vdisp = 0;
dax = 0; //Get average point of sector
day = 0;

View file

@ -3698,6 +3698,8 @@ static void polymer_drawmdsprite(spritetype *tspr)
spos[0] = (float)tspr->y;
spos[1] = -(float)(tspr->z) / 16.0f;
spos[2] = -(float)tspr->x;
spos2[0] = spos2[1] = spos2[2] = 0.0f;
}
ang = (float)((tspr->ang+spriteext[tspr->owner].angoff) & 2047) / (2048.0f / 360.0f);

View file

@ -1654,7 +1654,7 @@ int32_t gloadtile_hi(int32_t dapic,int32_t dapalnum, int32_t facen, hicreplctyp
static char *lastfn = NULL;
static int32_t lastsize = 0;
int32_t startticks, didprint=0;
int32_t startticks=0, didprint=0;
if (!hicr) return -1;
if (facen > 0)

View file

@ -7065,6 +7065,7 @@ static void Keys2d(void)
{
case 0:
printmessage16("MAP LIMITS EXCEEDED!");
x = y = z = 0;
break;
case CORRUPT_SECTOR:
i = k&(MAXSECTORS-1);
@ -7089,6 +7090,7 @@ static void Keys2d(void)
break;
default:
k = 0;
x = y = z = 0;
break;
}