IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 20, 2012, 6:58:23 AM (14 years ago)
Author:
eugene
Message:

fixes to address compile time errors due to pedantic gcc warnings

Location:
branches/eam_branches/ipp-20120601/psModules/src/objects
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120601/psModules/src/objects/pmSource.c

    r33963 r34044  
    10981098        if (!addNoise && !addModelVar) source->tmpFlags |= PM_SOURCE_TMPF_SUBTRACTED;
    10991099    }
     1100    if (!status) {
     1101        // XXX maybe raise an error or warning?
     1102    }
    11001103
    11011104    return true;
     
    11661169        status = pmModelSubWithOffset (target, source->maskObj, model, mode, maskVal, dx, dy);
    11671170    }
     1171    if (!status) {
     1172        // XXX raise an error or warning?
     1173    }
    11681174
    11691175    // restore original values
     
    12531259    } else {
    12541260        status = pmModelSubWithOffset (target, source->maskObj, model, mode, maskVal, dx, dy);
     1261    }
     1262    if (!status) {
     1263        // XXX raise an error or warning?
    12551264    }
    12561265
  • branches/eam_branches/ipp-20120601/psModules/src/objects/pmSourceIO_CMP.c

    r32347 r34044  
    6565    int i, type;
    6666    // psMetadataItem *mdi;
    67     psF32 *PAR, *dPAR;
     67    psF32 *PAR;
    6868    float lsky = 0;
    6969    bool status;
     
    130130
    131131        PAR = model->params->data.F32;
    132         dPAR = model->dparams->data.F32;
    133132
    134133        type = pmSourceGetDophotType (source);
     
    174173    bool status;
    175174    int Ninstar;
    176     psF32 *PAR, *dPAR;
     175    psF32 *PAR;
    177176    psEllipseAxes axes;
    178177
     
    273272
    274273            PAR = source->modelPSF->params->data.F32;
    275             dPAR = source->modelPSF->dparams->data.F32;
    276274
    277275            PAR[PM_PAR_SKY] = pow (atof (array->data[5]), 10.0);
  • branches/eam_branches/ipp-20120601/psModules/src/objects/pmSourceIO_PS1_CAL_0.c

    r32347 r34044  
    322322}
    323323
     324# define WRITE_AP_DATA 0
     325
    324326bool pmSourcesWrite_PS1_CAL_0_XSRC (psFits *fits, pmReadout *readout, psArray *sources, psMetadata *imageHeader, char *extname, psMetadata *recipe)
    325327{
     
    338340    }
    339341
     342# if (WRITE_AP_DATA)
    340343    bool calMags = false;
    341344    bool status1 = false;
     
    350353        calMags = true;
    351354    }
     355# endif
    352356
    353357    // create a header to hold the output data
     
    424428        psMetadataAdd (row, PS_LIST_TAIL, "Y_EXT_SIG",        PS_DATA_F32, "Sigma in EXT y coordinate",                  yErr);
    425429
    426 # if (0)
     430# if (WRITE_AP_DATA)
    427431        // Petrosian measurements
    428432        // XXX insert header data: petrosian ref radius, flux ratio
  • branches/eam_branches/ipp-20120601/psModules/src/objects/pmSourceIO_SMPDATA.c

    r32347 r34044  
    6363    psMetadata *row;
    6464    int i;
    65     psF32 *PAR, *dPAR;
     65    psF32 *PAR;
    6666    bool status;
    6767    psEllipseAxes axes;
     
    8585        if (model != NULL) {
    8686            PAR = model->params->data.F32;
    87             dPAR = model->dparams->data.F32;
    8887            xPos = PAR[PM_PAR_XPOS];
    8988            yPos = PAR[PM_PAR_YPOS];
     
    145144
    146145    bool status;
    147     psF32 *PAR, *dPAR;
     146    psF32 *PAR;
    148147    psEllipseAxes axes;
    149148    float lsky;
     
    176175
    177176        PAR = model->params->data.F32;
    178         dPAR = model->dparams->data.F32;
    179177
    180178        psMetadata *row = table->data[i];
  • branches/eam_branches/ipp-20120601/psModules/src/objects/pmSourceIO_SX.c

    r32347 r34044  
    5656    PS_ASSERT_PTR_NON_NULL(filename, false);
    5757
    58     psF32 *PAR, *dPAR;
     58    psF32 *PAR;
    5959    psEllipseAxes axes;
    6060
     
    7777
    7878        PAR = model->params->data.F32;
    79         dPAR = model->dparams->data.F32;
    8079
    8180        // pmSourceSextractType (source, &type, &flags);
Note: See TracChangeset for help on using the changeset viewer.