]> sigrok.org Git - libsigrok.git/commit
yokogawa-dlm: silence compiler warning (passing an empty array)
authorGerhard Sittig <redacted>
Tue, 17 Oct 2023 19:25:00 +0000 (21:25 +0200)
committerGerhard Sittig <redacted>
Wed, 18 Oct 2023 19:35:13 +0000 (21:35 +0200)
commitad7b0c173557b456353d965f91a728bed2c47fa2
treea7b443586c2083bf1fb26f05003086cb6490b0bf
parent96b8556295055ae7e8736625fffd295201624769
yokogawa-dlm: silence compiler warning (passing an empty array)

Rephrase the config_list() routine such that it does not attempt to
access the first item in an empty array. Be explicit about the digital
channel group's devopts being empty by design, add a comment.

The compiler warning could have been a false positive, but phrasing the
source code differently doesn't harm either, eliminates uncertainty.
src/hardware/yokogawa-dlm/api.c