Changeset fa7faf3


Ignore:
Timestamp:
06/27/14 13:42:10 (6 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, 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:
7baa948
Parents:
4cc8499
Message:

Fix build bug with UNUSED in libwandio

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libwandio/iow-lzo.c

    r2a7047c rfa7faf3  
    274274}
    275275
    276 iow_t *lzo_wopen(iow_t *child, int compress_level UNUSED)
     276iow_t *lzo_wopen(iow_t *child, int compress_level)
    277277{
    278278        const int opt_filter = 0;
     
    290290                return NULL;
    291291        }
     292
     293        /* Compress level is useless for LZO, but getting UNUSED into here
     294         * is more trouble than it is worth so this check will at least
     295         * stop us from getting warnings about it.
     296         */
     297        if (compress_level < 0)
     298                return NULL;
    292299
    293300        iow = malloc(sizeof(iow_t));
Note: See TracChangeset for help on using the changeset viewer.