Changeset a3041a4 for tools


Ignore:
Timestamp:
01/10/12 14:15:58 (10 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
8753bb8
Parents:
a0ec6f1
Message:
  • Fixed "unused but set" warnings that new gcc now likes to report
Location:
tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tools/traceanon/panon.c

    ra8f2692 ra3041a4  
    144144        uint8_t rin_input[16];
    145145       
    146         uint32_t firstnbits;
     146        //uint32_t firstnbits;
    147147
    148148        uint32_t result = 0;
     
    172172        // result with this, then proceed
    173173
    174         firstnbits = (uint32_t) orig_addr >> (32 - CACHEBITS);
     174        //firstnbits = (uint32_t) orig_addr >> (32 - CACHEBITS);
    175175        //result = (enc_cache[firstnbits] << (32 - CACHEBITS));
    176176
  • tools/tracereport/synopt_report.c

    r708f9ae ra3041a4  
    104104        unsigned char *opt_ptr;
    105105        libtrace_direction_t dir = trace_get_direction(packet);
    106         int tcp_payload, len;
     106        int len;
    107107        unsigned char type, optlen, *data;
    108108        struct tcp_opts opts_seen = {false, false, false, false, false, false};
     
    120120        if(len == 0)
    121121                return;
    122        
    123         tcp_payload = trace_get_wire_length(packet) - trace_get_capture_length(packet);
    124122       
    125123        opt_ptr = (unsigned char *)tcp + sizeof (libtrace_tcp_t);
Note: See TracChangeset for help on using the changeset viewer.