]> sigrok.org Git - libsigrok.git/commit
hung-chang-dso-2100: Fix a gcc 7 compiler warning.
authorUwe Hermann <redacted>
Sat, 24 Jun 2017 16:25:40 +0000 (18:25 +0200)
committerUwe Hermann <redacted>
Sat, 24 Jun 2017 16:56:53 +0000 (18:56 +0200)
commit276d7b18bbe71d061544c2d2989330b38ce86df3
tree5d263431318b5d8fd80f3f46e86c76bfa98f7a6a
parent317c97bebb67dbbf5e0ce9382655dea7f2038ac3
hung-chang-dso-2100: Fix a gcc 7 compiler warning.

  ../src/hardware/hung-chang-dso-2100/api.c: In function â€˜config_commit’:
  ../src/hardware/hung-chang-dso-2100/api.c:562:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
     state = 0x01;
     ~~~~~~^~~~~~
  ../src/hardware/hung-chang-dso-2100/api.c:563:2: note: here
    default:
    ^~~~~~~
  ../src/hardware/hung-chang-dso-2100/api.c:565:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
     if (ret != SR_OK)
        ^
  ../src/hardware/hung-chang-dso-2100/api.c:567:2: note: here
    case 0x01:
    ^~~~
src/hardware/hung-chang-dso-2100/api.c