]> sigrok.org Git - libsigrok.git/commit
hwdriver.c: Fix two scan-build warnings.
authorUwe Hermann <redacted>
Sat, 19 May 2018 20:04:22 +0000 (22:04 +0200)
committerUwe Hermann <redacted>
Sat, 19 May 2018 20:23:16 +0000 (22:23 +0200)
commit090f1e1e5478ea15baa3731fefbd4aff9be78c77
tree9219d967968a1e0aab61ca23b82efea251d12f11
parentb4580cb9d069594e561d79b4fc3d53aaff246f90
hwdriver.c: Fix two scan-build warnings.

  src/hwdriver.c: In function ‘log_key’:
  src/hwdriver.c:648:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    opstr = op == SR_CONF_GET ? "get" : op == SR_CONF_SET ? "set" : "list";
               ^~
  src/hwdriver.c: In function ‘check_key’:
  src/hwdriver.c:681:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    opstr = op == SR_CONF_GET ? "get" : op == SR_CONF_SET ? "set" : "list";
               ^~
src/hwdriver.c