]> sigrok.org Git - libsigrok.git/commit
Fix various warnings when building without libusb.
authorUwe Hermann <redacted>
Thu, 16 Apr 2015 20:33:29 +0000 (22:33 +0200)
committerUwe Hermann <redacted>
Fri, 17 Apr 2015 15:45:07 +0000 (17:45 +0200)
commit468665dfa7a030ba3746e2796a196a47cacf4f76
treece1ad7abede282d0ec8a1f593be2a30309a5f9c5
parent17dda6c5d46a9152fb72de2b89376ac0914fffdc
Fix various warnings when building without libusb.

  ../src/backend.c: In function 'sr_init':
  ../src/backend.c:435:1: warning: label 'done' defined but not used [-Wunused-label]
   done:
   ^

  ../src/device.c: In function 'sr_dev_inst_connid_get':
  ../src/device.c:525:7: warning: unused variable 'connection_id' [-Wunused-variable]
    char connection_id[64];
         ^
  ../src/device.c:524:20: warning: unused variable 'b' [-Wunused-variable]
    int r, cnt, i, a, b;
                      ^
  ../src/device.c:524:17: warning: unused variable 'a' [-Wunused-variable]
    int r, cnt, i, a, b;
                   ^
  ../src/device.c:524:14: warning: unused variable 'i' [-Wunused-variable]
    int r, cnt, i, a, b;
                ^
  ../src/device.c:524:9: warning: unused variable 'cnt' [-Wunused-variable]
    int r, cnt, i, a, b;
           ^
  ../src/device.c:524:6: warning: unused variable 'r' [-Wunused-variable]
    int r, cnt, i, a, b;
        ^
  ../src/device.c:523:22: warning: unused variable 'drvc' [-Wunused-variable]
    struct drv_context *drvc;
                      ^
src/backend.c
src/device.c