IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 20, 2012, 7:07:44 AM (14 years ago)
Author:
eugene
Message:

mods to address pedantic gcc warnings

Location:
branches/eam_branches/ipp-20120601/psLib/src/imageops
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120601/psLib/src/imageops/psImageGeomManip.c

    r31446 r34045  
    580580    psS32 outRows;
    581581    psS32 outCols;
    582     psS32 elementSize;
    583582    psElemType type;
    584583
     
    594593    outCols = input->numCols;
    595594    type = input->type.type;
    596     elementSize = PSELEMTYPE_SIZEOF(type);
     595    // XXX unused psS32 elementSize = PSELEMTYPE_SIZEOF(type);
    597596    out = psImageRecycle(out, outCols, outRows, type);
    598597
  • branches/eam_branches/ipp-20120601/psLib/src/imageops/psImageInterpolate.c

    r31446 r34045  
    461461    }
    462462
     463#define INTERPOLATE_CHECK() \
     464    if (xMin < 0) { /* XXX warn or error? */ } \
     465    if (yMin < 0) { /* XXX warn or error? */ } \
     466    if (xMax >= image->numCols) { /* XXX warn or error? */ } \
     467    if (yMax >= image->numRows) { /* XXX warn or error? */ } \
     468
    463469// Determine the result of the interpolation after all the math has been done
    464470static psImageInterpolateStatus interpolateResult(const psImageInterpolation *interp,
     
    523529    }
    524530    INTERPOLATE_RANGE();
     531    INTERPOLATE_CHECK();
    525532
    526533    // Get the appropriate kernels
     
    779786    }
    780787    INTERPOLATE_RANGE();
     788    INTERPOLATE_CHECK();
    781789
    782790    // Get the appropriate kernels
Note: See TracChangeset for help on using the changeset viewer.