Ignore:
Timestamp:
01/10/12 14:15:58 (9 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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_legacy.c

    r997614d ra3041a4  
    141141         * other platforms, e.g. *BSDs, Windows */
    142142        struct tm tm;
    143         char *tz;
    144143        time_t ret;
    145144
     
    155154        tm.tm_isdst = -1; /* forces check for summer time */
    156155       
    157         tz = getenv("TZ");
     156        getenv("TZ");
    158157        if (putenv("TZ=Pacific/Auckland")) {
    159158                perror("putenv");
     
    440439        uint32_t hdr_ts;
    441440
    442         double dts;
    443        
    444441        legacy_nzix_t *legacy = (legacy_nzix_t *)packet->header;
    445442               
     
    461458
    462459
    463         dts = tv.tv_sec + (double)tv.tv_usec / 1000 / 1000;
     460        /*dts = tv.tv_sec + (double)tv.tv_usec / 1000 / 1000; */
    464461        return tv;
    465462       
Note: See TracChangeset for help on using the changeset viewer.