Changeset 7518


Ignore:
Timestamp:
06/28/18 23:27:32 (3 weeks ago)
Author:
baker
Message:

cleanup warning: variable set but not used [-Wunused-but-set-variable]

Location:
trunk/src/libsrc/uw
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libsrc/uw/codautils.c

    r6216 r7518  
    227227                        float *scan, int *lscan) 
    228228{ 
    229         int test, i, j, k; 
    230         float xlas1, xlas2, xnew, xmin, xmax; 
     229        int i, j, k; 
     230        float xnew; 
     231#if 0 
     232        int test; 
     233        float xlas1, xlas2, xmin, xmax; 
     234#endif 
    231235        int scan_win = SCAN_WIN_LEN; 
    232236        double tank; 
     
    249253        scan[j] = tank / scan_win; 
    250254        k = 0; 
     255#if 0 
    251256        xlas1 = seisbuf[scan_win - 1]; 
    252257        xlas2 = seisbuf[scan_win - 2]; 
     258#endif 
    253259        for ( i = scan_win ; i < lseisbuf ; ++i ) { 
    254260                xnew = seisbuf[i]; 
     261#if 0 
    255262                /* if new value for tank is same as last three values to go in, 
    256263                   add average value of the tank rather than next new point 
     
    259266                xmin = MIN(xlas2,xlas1); 
    260267                test = ROUND(MAX(xmax,xnew) - MIN(xmin,xnew));  /* CKW: only works for integer data */ 
    261 #if 0 
    262268                if ( test != 0 ) 
    263269#endif 
     
    267273                        scan[++j] = tank / scan_win; 
    268274                } 
     275#if 0 
    269276                xlas2 = xlas1; 
    270277                xlas1 = xnew; 
     278#endif 
    271279        } 
    272280        *lscan = j; 
  • trunk/src/libsrc/uw/uwdfif.c

    r6216 r7518  
    9191int read_usbr(struct masthead *mh, FILE *readfs) 
    9292{ 
    93         char buf[16], *s1, *s2, c1, c2; 
     93        char buf[16], *s1, *s2; 
    9494        int current, ii, type = 0; 
    9595        struct usbrhead *uh; 
     
    122122 
    123123        s1 = buf;       /* Position of first station name for std UW-1 */ 
    124         c1 = *s1; 
    125124        s2 = buf + 8;   /* Position of first station name for USBR-UW-1 */ 
    126         c2 = *s2; 
    127125        *(buf + sizeof(buf) - 1) = '\0';        /* keep strlen in check */ 
    128126 
Note: See TracChangeset for help on using the changeset viewer.