gd_rotate.c:352: warning: 'dTan' is used uninitialized in this function

Issue #63 resolved
Gilles Espinasse
created an issue

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)

  1. Log in to comment