IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 21, 2012, 6:51:32 AM (14 years ago)
Author:
eugene
Message:

changes needed for pedantic gcc

Location:
branches/eam_branches/ipp-20120601/psphot/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120601/psphot/src/Makefile.am

    r33690 r34051  
    183183        psphotSourcePlots.c            \
    184184        psphotRadialPlot.c             \
    185         psphotKronMasked.c             \
    186185        psphotKronIterate.c            \
    187186        psphotRadialProfileWings.c     \
     
    209208        psphotSetNFrames.c
    210209
    211 # re-instate these
     210# not currently used
    212211#       psphotIsophotal.c              \
    213212#       psphotAnnuli.c                 \
    214213#       psphotKron.c                   \
     214#       psphotKronMasked.c             \
    215215#
    216216
  • branches/eam_branches/ipp-20120601/psphot/src/psphotCleanup.c

    r29548 r34051  
    2929psExit psphotGetExitStatus (void) {
    3030
    31     psErrorCode err = psErrorCodeLast ();
     31    // gcc -Wswitch complains here if err is declared as type psErrorCode
     32    // the collection of ps*ErrorCode values are enums defined separately for
     33    // each module (psphot, pswarp, etc).  the lowest type, psErrorCode is only the base set and does
     34    // not include the possible psphot values
     35
     36    // for now, to get around this, we just use an int for the switch
     37
     38    // psErrorCode err = psErrorCodeLast ();
     39    int err = psErrorCodeLast ();
    3240    switch (err) {
    3341      case PS_ERR_NONE:
  • branches/eam_branches/ipp-20120601/psphot/src/psphotMakeResiduals.c

    r30624 r34051  
    177177
    178178                mflux = 0;
    179                 bool offImage = false;
    180179                if (psImageInterpolate (&flux, &dflux, &mflux, ix, iy, interp) == PS_INTERPOLATE_STATUS_OFF) {
    181180                    // This pixel is off the image
    182                     offImage = true;
    183181                    fmasks->data.PS_TYPE_VECTOR_MASK_DATA[i] = badMask;
    184182                } else {
  • branches/eam_branches/ipp-20120601/psphot/src/psphotPetrosianStats.c

    r32348 r34051  
    4646
    4747    bool anyPetro = false;
    48     bool manyPetro = false;
     48    // bool manyPetro = false;  XXX not used
    4949    bool above = true;
    5050    float Asum = 0.0;
     
    122122            }
    123123            above = false;
    124             if (anyPetro) manyPetro = true;
     124            // if (anyPetro) manyPetro = true;
    125125            anyPetro = true;
    126126        }
     
    212212    source->extpars->petrosianR50    = R50;
    213213    source->extpars->petrosianR90    = R90;
    214     source->extpars->petrosianFill      = petApix / petArea;
     214    source->extpars->petrosianFill   = petApix / petArea;
    215215   
    216216    // XXX add the errors
  • branches/eam_branches/ipp-20120601/psphot/src/psphotReadoutCleanup.c

    r29936 r34051  
    77
    88    // remove internal pmFPAfiles, if created
    9     if (psErrorCodeLast() == PSPHOT_ERR_DATA) {
     9    if (psErrorCodeLast() == (psErrorCode) PSPHOT_ERR_DATA) {
    1010        psErrorStackPrint(stderr, "Error in the psphot readout analysis");
    1111        psErrorClear();
  • branches/eam_branches/ipp-20120601/psphot/src/psphotSignificanceImage.c

    r31154 r34051  
    88    float SIGMA_SMTH, NSIGMA_SMTH;
    99    bool status = false;
    10     bool guess = false;
    1110
    1211    // smooth the image and variance map
     
    3534        SIGMA_SMTH  = 0.5*(fwhmMajor + fwhmMinor) / (2.0*sqrt(2.0*log(2.0)));
    3635        NSIGMA_SMTH = psMetadataLookupF32 (&status, recipe, "PEAKS_SMOOTH_NSIGMA");
    37         guess = false;
    3836    } else {
    3937        // if we do not know the FWHM, use the guess smoothing kernel supplied.
     
    4341        NSIGMA_SMTH = psMetadataLookupF32 (&status, recipe, "PEAKS_SMOOTH_NSIGMA");
    4442        PS_ASSERT (status, NULL);
    45         guess = true;
    4643    }
    4744    // record the actual smoothing sigma
Note: See TracChangeset for help on using the changeset viewer.