IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34089 for trunk/ppSub


Ignore:
Timestamp:
Jun 26, 2012, 11:47:13 AM (14 years ago)
Author:
eugene
Message:

changes to support pedantic gcc warnings; add configure option for debug-build and no-as-needed

Location:
trunk/ppSub
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSub/configure.ac

    r23803 r34089  
    99AM_MAINTAINER_MODE
    1010
    11 IPP_STDCFLAGS
     11IPP_STDLDFLAGS
    1212
    1313AC_LANG(C)
     
    3030dnl Set CFLAGS for build
    3131IPP_STDOPTS
    32 CFLAGS="${CFLAGS} -Wall -Werror"
     32IPP_STDCFLAGS
    3333
    3434IPP_VERSION
  • trunk/ppSub/src/ppSubExit.c

    r27719 r34089  
    1111    }
    1212
    13     psErrorCode errorCode = psErrorCodeLast(); // Error code
     13    // gcc -Wswitch complains here if err is declared as type psErrorCode
     14    // the collection of ps*ErrorCode values are enums defined separately for
     15    // each module (psphot, pswarp, etc).  the lowest type, psErrorCode is only the base set and does
     16    // not include the possible psphot values
     17
     18    // for now, to get around this, we just use an int for the switch
     19
     20    // psErrorCode errorCode = psErrorCodeLast(); // Error code
     21    int errorCode = psErrorCodeLast(); // Error code
    1422    if (errorCode != PS_ERR_NONE) {
    1523        pmFPAfileFreeSetStrict(false);
  • trunk/ppSub/src/ppSubMatchPSFs.c

    r32676 r34089  
    266266        if (!detections->allSources) {
    267267            psFree(detections);
    268             psErrorCode error = psErrorCodeLast(); // Error code
     268            int error = psErrorCodeLast(); // Error code
    269269            if (error == PM_ERR_OBJECTS) {
    270270                psErrorStackPrint(stderr, "Unable to match source lists");
     
    439439
    440440    if (!success) {
    441         psErrorCode error = psErrorCodeLast(); // Error code
     441        int error = psErrorCodeLast(); // Error code
    442442        if (error == PM_ERR_STAMPS) {
    443443            psErrorStackPrint(stderr, "Unable to find stamps");
     
    471471            psRegion *region = regItem->data.V; // Region of interest
    472472            psMetadataItem *modeItem = psMetadataGetAndIncrement(modeIter); // Item with mode
    473             psAssert(modeItem && modeItem->type == PS_TYPE_S32, "Expect subtraction mode");
     473            psAssert(modeItem && modeItem->type == PS_DATA_S32, "Expect subtraction mode");
    474474            pmSubtractionMode mode = modeItem->data.S32; // Subtraction mode
    475475            psMetadataItem *normItem = psMetadataGetAndIncrement(normIter); // Item with normalisation
    476             psAssert(normItem && normItem->type == PS_TYPE_F32 && isfinite(normItem->data.F32),
     476            psAssert(normItem && normItem->type == PS_DATA_F32 && isfinite(normItem->data.F32),
    477477                     "Expect normalisation");
    478478            float norm = normItem->data.F32; // Normalisation
Note: See TracChangeset for help on using the changeset viewer.