Changeset 7519


Ignore:
Timestamp:
06/29/18 00:13:06 (3 weeks ago)
Author:
baker
Message:

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

Location:
trunk/src/archiving/ew2mseed
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/archiving/ew2mseed/ew2mseed.c

    r7220 r7519  
    1 #define _XOPEN_SOURCE 500 
    2   
    31/*===================================================================== 
    42// Copyright (C) 2000-2010 Instrumental Software Technologies, Inc. 
     
    179177/* Standard includes */ 
    180178 
     179#define _XOPEN_SOURCE 500 
     180  
     181#include <signal.h> 
    181182#include <stdio.h> 
     183#include <stdlib.h> 
    182184#include <string.h> 
    183 #include <stdlib.h> 
    184 #include <signal.h> 
    185185 
    186186/* Includes from Earthworm distribution */ 
    187187#include "earthworm.h" 
    188 #include <qlib2.h> 
    189  
    190  
    191  
     188#include "qlib2.h" 
    192189 
    193190/* Local includes */ 
    194191#include "ew2mseed.h" 
     192 
    195193#define VERSION "ew2mseed: r5878 2013-08-19 paulf $" 
    196  
    197194 
    198195  int main(int argc, char **argv) 
     
    202199        int retVal, retVal1; 
    203200        RINGS rn; 
    204         int hworder, dworder; 
    205201        WS_MENU_QUEUE_REC menu_queue; 
    206202        menu_queue.head = NULL; 
     
    307303        init_qlib2(1); 
    308304        /* IGD 07/25/2012 -> Force big endian on data */ 
    309         hworder = set_hdr_wordorder (SEED_BIG_ENDIAN); 
    310         dworder = set_data_wordorder (SEED_BIG_ENDIAN); 
     305        set_hdr_wordorder (SEED_BIG_ENDIAN); 
     306        set_data_wordorder (SEED_BIG_ENDIAN); 
    311307 
    312308        /*      Create SCN infinite Ring loop 
  • trunk/src/archiving/ew2mseed/ew2mseed_files.c

    r7514 r7519  
    837837        double gapInSec=0;              /* Gap in seconds */ 
    838838        double newReqStartTime;         /* Variable to compute the new trace->reqStarttime */ 
    839         double smallValue; 
    840839        double actStarttime;            /* Actual starting time of data we  write in the file */ 
    841840        double actEndtime;              /* Actual end time of data we write into the file */ 
     
    861860        SDR_HDR* lastBlock;             /* MiniSEED standard header */   
    862861        BS *init_bs = NULL;             /* Temp structure required by ms_pack_data() */  
    863  
    864         /* Define smallValue as  
    865          ***************************/ 
    866         smallValue = 1./(samprate * 10.); 
    867862 
    868863        /* Check if we have a proper trace buffer 
     
    12061201                        else 
    12071202                                writeOut = fwrite ((const void *)ms, (size_t)mseed_hdr->blksize, (size_t) n_blocks, fid); 
    1208  
     1203                        if ( writeOut != ( (n_blocks > 1) ? n_blocks - 1 : n_blocks ) ) 
     1204                                logit("pt", "createMseed: fwrite failed for %s %s %s\n",   
     1205                                wf->sta, wf->net, wf->chan); 
    12091206                        fclose(fid); 
    12101207                        curBlock = (SDR_HDR *) ms;       
  • trunk/src/archiving/ew2mseed/ew2mseed_utils.c

    r5391 r7519  
    226226  long ew2mseedAddData (int *buffer, char *msg_p, long position, int bufLen, char swap, int bytesPerSample) 
    227227  {     float *fBuf = NULL; 
    228         double *dBuf = NULL; 
    229228        int *iBuf = NULL; 
    230229        short *sBuf= NULL; 
     
    233232        if (swap == 't' && bytesPerSample == 8) /*t8 SUN IEEE double precision real */ 
    234233        { 
    235                 dBuf = (double *) msg_p; 
    236234                for (i = 0; i< bufLen; i ++) 
    237235                { 
     
    281279        else if (swap == 'f' && bytesPerSample == 8) /*f8 VAX/Intel IEEE double precision real */ 
    282280        { 
    283                 dBuf = (double *) msg_p; 
    284281                for (i = 0; i< bufLen; i ++) 
    285282                { 
Note: See TracChangeset for help on using the changeset viewer.