gd_rotate.c:352: warning: 'dTan' is used uninitialized in this function
Issue #63
resolved
gcc-4.4.5 is not always right with uninitialized warning, but compiling with -Wall -Wextra show
gd_rotate.c: In function 'gdImageRotate45': gd_rotate.c:352: warning: 'dTan' is used uninitialized in this function
gcc should be right here as code is
double dRadAngle, dSinE, dTan, dShear; double dOffset; /* Variable skew offset */ int u, iShear, newx, newy; int clrBackR, clrBackG, clrBackB, clrBackA; /* See GEMS I for the algorithm details */ newx = (int)(src->sx + src->sy * fabs(dTan));
Comments (3)
-
reporter -
- changed status to resolved
Fixed in 8b3bb51
-
move variable init (reg from a1f36bc, fixed issue
#63)→ <<cset 8b3bb51a6364>>
- Log in to comment
Forgot to say this is with 2.1.0-rc1 code.