- fixed GCC warnings and errors

(Is there anyway to tone down GCC's warning level? It outputs too many false positives for potentially uninitialized variables in which the genuine errors get drowned.)
This commit is contained in:
Christoph Oelckers 2017-03-11 19:02:00 +01:00
commit 921abc404d
21 changed files with 45 additions and 27 deletions

View file

@ -840,7 +840,7 @@ int FGLRenderer::PTM_BestColor (const uint32_t *pal_in, int r, int g, int b, int
static float trackpowtable = 0.;
double fbestdist, fdist;
int bestcolor;
int bestcolor = 0;
if (firstTime || trackpowtable != gl_paltonemap_powtable)
{