IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34045


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
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120601/psLib/src/astro/psTime.c

    r30724 r34045  
    223223static bool timeInit(const char *fileName)
    224224{
    225     psS32 numLines = 0;
    226225    bool foundTable = false;
    227226    char *tableDir = NULL;
     
    390389        if (i < numTables) {
    391390            table = psLookupTableAlloc(fullTableName, (const char*)tableFormat, tablesIndex->data.S32[i]);
    392             numLines = psLookupTableRead(table);
     391            // XXX unused numLines = psLookupTableRead(table);
    393392        } else {
    394393            psError(PS_ERR_BAD_PARAMETER_VALUE, no_problem,
  • branches/eam_branches/ipp-20120601/psLib/src/fits/psFitsTable.c

    r31152 r34045  
    511511                colSpec *spec = psAlloc(sizeof(colSpec)); // Specification for this column
    512512                // BOOL type is not a valid vector type, so we translate it to U8
    513                 spec->type = colItem->type == PS_TYPE_BOOL ? PS_TYPE_U8 : colItem->type;
     513                spec->type = colItem->type == PS_DATA_BOOL ? PS_DATA_U8 : colItem->type;
    514514                spec->size = size;
    515515                if (colItem->type == PS_DATA_VECTOR) {
     
    526526                }
    527527                if (colItem->type != spec->type &&
    528                     colItem->type != PS_TYPE_BOOL && spec->type != PS_TYPE_U8) {
     528                    colItem->type != PS_DATA_BOOL && spec->type != PS_DATA_U8) {
    529529                    psWarning("Differing type found for column %s: %x vs %x --- using the first found.\n",
    530530                              colSpecItem->name, colItem->type, spec->type);
  • 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
  • branches/eam_branches/ipp-20120601/psLib/src/mathtypes/psVector.c

    r26892 r34045  
    322322            PSVECTOR_COPY_SAME_CASE(F32);
    323323            PSVECTOR_COPY_SAME_CASE(F64);
    324         default: {
    325                 char* typeStr;
    326                 PS_TYPE_NAME(typeStr,type);
    327                 psError(PS_ERR_BAD_PARAMETER_TYPE, true,
    328                         //                        _("Input psVector is an unsupported type (0x%x)."), typeStr);
    329                         "Input psVector is an unsupported type.\n");
    330                 psFree(output);
    331                 return NULL;
    332             }
     324          default: {
     325              psError(PS_ERR_BAD_PARAMETER_TYPE, true, "Input psVector is an unsupported type.\n");
     326              psFree(output);
     327              return NULL;
     328          }
    333329        }
    334330        return output;
  • branches/eam_branches/ipp-20120601/psLib/src/types/psLookupTable.c

    r27774 r34045  
    607607    psU64 loIdx = 0;
    608608    long  numRows = 0;
    609     long numCols = 0;
    610609    psF64 out = 0.0;
    611610    psF64 denom = 0.0;
     
    619618    values = table->values;
    620619    numRows = table->index->n;
    621     numCols = table->values->n;
    622620    valuesVec = (psVector*)values->data[column];
    623621
Note: See TracChangeset for help on using the changeset viewer.