IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 26, 2012, 11:47:13 AM (14 years ago)
Author:
eugene
Message:

changes to support pedantic gcc warnings; add configure option for debug-build and no-as-needed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/imageops/psImageInterpolate.c

    r31446 r34089  
    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
     
    989997    INTERPOLATE_SETUP(x, y);
    990998    xExact = yExact = false;
     999    if (xExact && yExact) { /* possible alternative */ }
    9911000
    9921001    psF32 xKernel[size], yKernel[size]; // Interpolation kernels
     
    10381047    INTERPOLATE_SETUP(x, y);
    10391048    xExact = yExact = false;
     1049    if (xExact && yExact) { /* possible alternative */ }
    10401050
    10411051    psF32 xKernel[size], yKernel[size]; // Interpolation kernels
Note: See TracChangeset for help on using the changeset viewer.