]> sigrok.org Git - libsigrok.git/commitdiff
ols: Fix a compiler warning (unused variable).
authorUwe Hermann <redacted>
Fri, 13 Mar 2015 18:12:47 +0000 (19:12 +0100)
committerUwe Hermann <redacted>
Fri, 13 Mar 2015 18:12:47 +0000 (19:12 +0100)
    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;
            ^

src/hardware/openbench-logic-sniffer/api.c

index 07bb2eed19383d42529854deec1e0c46c7169ffc..ca5f4799c584d5f42989e36dd5670055bd5f093d 100644 (file)
@@ -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;