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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120601/pswarp/src/pswarpExit.c

    r27563 r34051  
    2020    }
    2121
    22     psErrorCode errorCode = psErrorCodeLast(); // Error code
     22
     23    // gcc -Wswitch complains here if err is declared as type psErrorCode
     24    // the collection of ps*ErrorCode values are enums defined separately for
     25    // each module (psphot, pswarp, etc).  the lowest type, psErrorCode is only the base set and does
     26    // not include the possible psphot values
     27
     28    // for now, to get around this, we just use an int for the switch
     29
     30    // psErrorCode errorCode = psErrorCodeLast(); // Error code
     31    int errorCode = psErrorCodeLast(); // Error code
     32
    2333    if (errorCode != PS_ERR_NONE) {
    2434        pmFPAfileFreeSetStrict(false);
Note: See TracChangeset for help on using the changeset viewer.