From 27d93ac698ff9b8ff4bdcb91477184e480bc3469 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Tue, 30 Jan 2018 16:02:29 +0000 Subject: [PATCH] Satisfy -Wmaybe-uninitialized warnings exposed by -Og. git-svn-id: https://svn.eduke32.com/eduke32@6632 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/polymost.cpp | 2 +- source/duke3d/src/astub.cpp | 4 ++-- source/duke3d/src/player.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/build/src/polymost.cpp b/source/build/src/polymost.cpp index 84ab1e3ee..328f25ccb 100644 --- a/source/build/src/polymost.cpp +++ b/source/build/src/polymost.cpp @@ -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; ioffset == 0) pProj->offset = 1; - int otherSprite; + int otherSprite = -1; int32_t zvel = 0; switch (pProj->workslike & PROJECTILE_TYPE_MASK)