From: Uwe Hermann Date: Fri, 13 Mar 2015 18:12:47 +0000 (+0100) Subject: ols: Fix a compiler warning (unused variable). X-Git-Tag: libsigrok-0.4.0~607 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=f7ab2f231a5c3f52f386084fa4318ee0781031ec;p=libsigrok.git ols: Fix a compiler warning (unused variable). CC src/hardware/openbench-logic-sniffer/api.lo ../src/hardware/openbench-logic-sniffer/api.c: In function 'scan': ../src/hardware/openbench-logic-sniffer/api.c:103:10: warning: unused variable 'probefd' [-Wunused-variable] GPollFD probefd; ^ --- diff --git a/src/hardware/openbench-logic-sniffer/api.c b/src/hardware/openbench-logic-sniffer/api.c index 07bb2eed..ca5f4799 100644 --- a/src/hardware/openbench-logic-sniffer/api.c +++ b/src/hardware/openbench-logic-sniffer/api.c @@ -100,7 +100,6 @@ static GSList *scan(GSList *options) struct dev_context *devc; struct sr_channel *ch; struct sr_serial_dev_inst *serial; - GPollFD probefd; GSList *l, *devices; int ret, i; const char *conn, *serialcomm;