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/psModules
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120601/psModules/src/detrend/pmFringeStats.c

    r31069 r34052  
    662662        if (item->type == PS_DATA_VECTOR) { \
    663663            ARRAY->data[i] = psMemIncrRefCounter(item->data.V); \
    664         } else if (item->type == PS_TYPE_##TYPE) { \
     664        } else if (item->type == PS_DATA_##TYPE) { \
    665665            psVector *vector = psVectorAlloc(1, PS_TYPE_##TYPE); \
    666666            vector->data.TYPE[0] = item->data.TYPE; \
  • branches/eam_branches/ipp-20120601/psModules/src/detrend/pmNonLinear.c

    r34044 r34052  
    329329
    330330    bin = correction_fluxes->n - 1;
     331    psTrace("psModules.nonlin",6,"NLMN: %f %d %f %f\n",flux,bin,correction_fluxes->data.F32[0],correction_fluxes->data.F32[bin]);
     332    if (bin < 0) { /* warn? */ }
    331333    if (flux < correction_fluxes->data.F32[0]) {
    332334        return(0.0);
     
    357359    bin = correction_fluxes->n - 1;
    358360    psTrace("psModules.nonlin",6,"NLMN: %f %d %f %f\n",flux,bin,correction_fluxes->data.F32[0],correction_fluxes->data.F32[bin]);
     361    if (bin < 0) { /* warn? */ }
    359362    if (flux < correction_fluxes->data.F32[0]) {
    360363        return(0.0);
  • branches/eam_branches/ipp-20120601/psModules/src/extras/psPipe.c

    r34051 r34052  
    105105
    106106        status = execvp (argv[0], argv);
    107         psWarning ("error running exec for child process");
     107        if (status < 0) { psWarning ("error running exec for child process"); }
    108108        exit (1); // this statement exits the child, not the parent, process
    109109    }
  • branches/eam_branches/ipp-20120601/psModules/src/objects/models/pmModel_PGAUSS.c

    r32347 r34052  
    261261{
    262262    psF64 z;
    263     int Nstep = 0;
    264263    psEllipseShape shape;
    265264
     
    285284    // use the fact that f is monotonically decreasing
    286285    z = 0;
    287     Nstep = 0;
    288286
    289287    // choose a z value guaranteed to be beyond our limit
  • branches/eam_branches/ipp-20120601/psModules/src/objects/models/pmModel_PS1_V1.c

    r32347 r34052  
    283283{
    284284    psF64 z;
    285     int Nstep = 0;
    286285    psEllipseShape shape;
    287286
     
    308307    // use the fact that f is monotonically decreasing
    309308    z = 0;
    310     Nstep = 0;
    311309
    312310    // choose a z value guaranteed to be beyond our limit
  • branches/eam_branches/ipp-20120601/psModules/src/objects/models/pmModel_QGAUSS.c

    r33417 r34052  
    284284{
    285285    psF64 z;
    286     int Nstep = 0;
    287286    psEllipseShape shape;
    288287
     
    312311    // use the fact that f is monotonically decreasing
    313312    z = 0;
    314     Nstep = 0;
    315313
    316314    // choose a z value guaranteed to be beyond our limit
  • branches/eam_branches/ipp-20120601/psModules/src/objects/models/pmModel_RGAUSS.c

    r32347 r34052  
    273273{
    274274    psF64 z;
    275     int Nstep = 0;
    276275    psEllipseShape shape;
    277276
     
    296295    // use the fact that f is monotonically decreasing
    297296    z = 0;
    298     Nstep = 0;
    299297
    300298    // choose a z value guaranteed to be beyond our limit
  • branches/eam_branches/ipp-20120601/psModules/src/objects/pmSourceIO_CMP.c

    r34044 r34052  
    184184    }
    185185
    186     // find config information for output header
    187     float ZERO_POINT = psMetadataLookupF32 (&status, header, "ZERO_PT");
    188     if (!status)
    189         ZERO_POINT = 25.0;
     186    // XXX unused // find config information for output header
     187    // XXX unused float ZERO_POINT = psMetadataLookupF32 (&status, header, "ZERO_PT");
     188    // XXX unused if (!status)
     189    // XXX unused     ZERO_POINT = 25.0;
    190190
    191191    // how many lines in the header?
  • branches/eam_branches/ipp-20120601/psModules/test/tap/src/tap.c

    r11550 r34052  
    8787    if(test_name != NULL) {
    8888        va_start(ap, test_name);
    89         vasprintf(&local_test_name, test_name, ap);
     89        int status = vasprintf(&local_test_name, test_name, ap);
     90        if (status) {/* warning? */}
    9091        va_end(ap);
    9192
     
    303304
    304305    va_start(ap, fmt);
    305     asprintf(&skip_msg, fmt, ap);
     306    int status = asprintf(&skip_msg, fmt, ap);
     307    if (status) {/* warning? */}
    306308    va_end(ap);
    307309
     
    328330
    329331    va_start(ap, fmt);
    330     vasprintf(&todo_msg, fmt, ap);
     332    int status = vasprintf(&todo_msg, fmt, ap);
     333    if (status) {/* warning? */}
    331334    va_end(ap);
    332335
Note: See TracChangeset for help on using the changeset viewer.