Changeset 34089 for trunk/ppSub
- Timestamp:
- Jun 26, 2012, 11:47:13 AM (14 years ago)
- Location:
- trunk/ppSub
- Files:
-
- 3 edited
-
configure.ac (modified) (2 diffs)
-
src/ppSubExit.c (modified) (1 diff)
-
src/ppSubMatchPSFs.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSub/configure.ac
r23803 r34089 9 9 AM_MAINTAINER_MODE 10 10 11 IPP_STD CFLAGS11 IPP_STDLDFLAGS 12 12 13 13 AC_LANG(C) … … 30 30 dnl Set CFLAGS for build 31 31 IPP_STDOPTS 32 CFLAGS="${CFLAGS} -Wall -Werror" 32 IPP_STDCFLAGS 33 33 34 34 IPP_VERSION -
trunk/ppSub/src/ppSubExit.c
r27719 r34089 11 11 } 12 12 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 14 22 if (errorCode != PS_ERR_NONE) { 15 23 pmFPAfileFreeSetStrict(false); -
trunk/ppSub/src/ppSubMatchPSFs.c
r32676 r34089 266 266 if (!detections->allSources) { 267 267 psFree(detections); 268 psErrorCodeerror = psErrorCodeLast(); // Error code268 int error = psErrorCodeLast(); // Error code 269 269 if (error == PM_ERR_OBJECTS) { 270 270 psErrorStackPrint(stderr, "Unable to match source lists"); … … 439 439 440 440 if (!success) { 441 psErrorCodeerror = psErrorCodeLast(); // Error code441 int error = psErrorCodeLast(); // Error code 442 442 if (error == PM_ERR_STAMPS) { 443 443 psErrorStackPrint(stderr, "Unable to find stamps"); … … 471 471 psRegion *region = regItem->data.V; // Region of interest 472 472 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"); 474 474 pmSubtractionMode mode = modeItem->data.S32; // Subtraction mode 475 475 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), 477 477 "Expect normalisation"); 478 478 float norm = normItem->data.F32; // Normalisation
Note:
See TracChangeset
for help on using the changeset viewer.
