Satisfy -Wmaybe-uninitialized warnings exposed by -Og.

git-svn-id: https://svn.eduke32.com/eduke32@6632 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2018-01-30 16:02:29 +00:00
parent c64bfef4f1
commit 27d93ac698
3 changed files with 4 additions and 4 deletions

View file

@ -1956,7 +1956,7 @@ static void polymost_drawpoly(vec2f_t const * const dpxy, int32_t const n, int32
ngy.u -= ngy.d * uoffs;
ngo.u -= ngo.d * uoffs;
float du0, du1;
float du0 = 0.f, du1 = 0.f;
//Find min&max u coordinates (du0...du1)
for (bssize_t i=0; i<npoints; ++i)

View file

@ -3836,7 +3836,7 @@ int64_t ldistsqr(spritetype *s1,spritetype *s2)
static void TextEntryMode(int16_t startspr)
{
char ch, buffer[80], doingspace=0;
int16_t daang = 0, t, alphidx, basetile, linebegspr, curspr, cursor;
int16_t daang = 0, t, alphidx, linebegspr, curspr, cursor;
int32_t i, j, k, dax = 0, day = 0;
static uint8_t hgap=0, vgap=4;
static uint8_t spcgap[MAX_ALPHABETS], firstrun=1;
@ -3868,7 +3868,7 @@ static void TextEntryMode(int16_t startspr)
return;
}
t = sprite[startspr].picnum;
int16_t basetile = t = sprite[startspr].picnum;
alphidx = -1;
for (i=0; i<numalphabets; i++)
{

View file

@ -858,7 +858,7 @@ static int A_ShootCustom(int const spriteNum, int const projecTile, int shootAng
if (pProj->offset == 0)
pProj->offset = 1;
int otherSprite;
int otherSprite = -1;
int32_t zvel = 0;
switch (pProj->workslike & PROJECTILE_TYPE_MASK)