]> sigrok.org Git - libsigrok.git/commit
saleae-logic-pro: Fix two compiler warnings.
authorUwe Hermann <redacted>
Mon, 3 Jul 2017 06:40:30 +0000 (08:40 +0200)
committerUwe Hermann <redacted>
Mon, 3 Jul 2017 09:57:02 +0000 (11:57 +0200)
commitfbbafc6909a4c3d75f77f1c770ef2e8aaab1b306
tree395185923bacd89652cb1679291f65c921fbea3b
parentb605edf38fa47943e21b511e46e7d4a89fad22eb
saleae-logic-pro: Fix two compiler warnings.

  src/hardware/saleae-logic-pro/protocol.c:389:12: warning: 'set_led' defined but not used [-Wunused-function]
   static int set_led(const struct sr_dev_inst *sdi, uint8_t r, uint8_t g, uint8_t b)
              ^
    CC       src/hardware/saleae-logic-pro/api.lo
  src/hardware/saleae-logic-pro/api.c: In function 'dev_acquisition_handle':
  src/hardware/saleae-logic-pro/api.c:332:9: warning: missing initializer for field 'tv_sec' of 'struct timeval' [-Wmissing-field-initializers]
    struct timeval tv = {};
           ^
  In file included from /usr/include/x86_64-linux-gnu/sys/time.h:27:0,
                   from include/libsigrok/libsigrok.h:24,
                   from src/hardware/saleae-logic-pro/protocol.h:25,
                   from src/hardware/saleae-logic-pro/api.c:23:
  /usr/include/x86_64-linux-gnu/bits/time.h:32:14: note: 'tv_sec' declared here
       __time_t tv_sec;  /* Seconds.  */
                ^
src/hardware/saleae-logic-pro/api.c
src/hardware/saleae-logic-pro/protocol.c