IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34089 for trunk/ppBackground


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/ppBackground
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppBackground/configure.ac

    r28281 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/ppBackground/src/ppBackgroundExit.c

    r28288 r34089  
    1010    }
    1111
    12     psErrorCode errorCode = psErrorCodeLast(); // Error code
     12    // gcc -Wswitch complains here if err is declared as type psErrorCode
     13    // the collection of ps*ErrorCode values are enums defined separately for
     14    // each module (psphot, pswarp, etc).  the lowest type, psErrorCode is only the base set and does
     15    // not include the possible psphot values
     16
     17    // for now, to get around this, we just use an int for the switch
     18
     19    // psErrorCode errorCode = psErrorCodeLast(); // Error code
     20    int errorCode = psErrorCodeLast(); // Error code
     21
    1322    if (errorCode != PS_ERR_NONE) {
    1423        pmFPAfileFreeSetStrict(false);
Note: See TracChangeset for help on using the changeset viewer.