IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 22, 2012, 6:52:56 AM (14 years ago)
Author:
eugene
Message:

changes to satisfy more pedantic gcc

Location:
branches/eam_branches/ipp-20120601/ppStack/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120601/ppStack/src/ppStackConvolve.c

    r32170 r34052  
    77        psMetadataItem *item = psMetadataLookup(SOURCE->concepts, NAME); \
    88        psAssert(item, "Concept should be present");                    \
    9         psAssert(item->type == PS_TYPE_F32, "Concept should be F32");   \
     9        psAssert(item->type == PS_DATA_F32, "Concept should be F32");   \
    1010        item->data.F32 = VALUE;                                         \
    1111    }
     
    101101        if (!ppStackMatch(readout, target, options, i, config)) {
    102102            // XXX many things can cause a failure of ppStackMatch -- should some be handled differently?
    103             psErrorCode error = psErrorCodeLast(); // Error code
     103
     104            // gcc -Wswitch complains here if err is declared as type psErrorCode
     105            // the collection of ps*ErrorCode values are enums defined separately for
     106            // each module (psphot, pswarp, etc).  the lowest type, psErrorCode is only the base set and does
     107            // not include the possible psphot values
     108
     109            // for now, to get around this, we just use an int for the switch
     110
     111            // psErrorCode error = psErrorCodeLast(); // Error code
     112            int error = psErrorCodeLast(); // Error code
    104113            switch (error) {
    105114                // Fatal errors
  • branches/eam_branches/ipp-20120601/ppStack/src/ppStackFinish.c

    r30620 r34052  
    4545    }
    4646
    47     psErrorCode errorCode = psErrorCodeLast(); // Error code
     47    // gcc -Wswitch complains here if err is declared as type psErrorCode
     48    // the collection of ps*ErrorCode values are enums defined separately for
     49    // each module (psphot, pswarp, etc).  the lowest type, psErrorCode is only the base set and does
     50    // not include the possible psphot values
     51
     52    // for now, to get around this, we just use an int for the switch
     53
     54    // psErrorCode errorCode = psErrorCodeLast(); // Error code
     55    int errorCode = psErrorCodeLast(); // Error code
    4856    if (errorCode == PS_ERR_NONE) {
    4957        return exitValue;
  • branches/eam_branches/ipp-20120601/ppStack/src/ppStackTarget.c

    r30620 r34052  
    191191
    192192        float norm = powf(10.0, -0.4 * options->norm->data.F32[i]); // Normalisation from stars
    193         float meanVariance = bg->robustMedian * PS_SQR(norm);       // Mean variance in normalised image
     193        float meanVariance = mean * PS_SQR(norm);       // Mean variance in normalised image
    194194
    195195        if (meanVariance < minVariance) {
Note: See TracChangeset for help on using the changeset viewer.