]> sigrok.org Git - libsigrok.git/commit
modbus: silence a build warning
authorWolfram Sang <redacted>
Tue, 29 Dec 2015 11:45:07 +0000 (12:45 +0100)
committerUwe Hermann <redacted>
Tue, 29 Dec 2015 12:19:36 +0000 (13:19 +0100)
commit52fb2d448480fd820fadff464a676e61dabc557f
tree1e0b9a826331dfa61aff67ecf5a75fbf4b365f8c
parent0a1f7b09b3fa4cc4da29c7acf53717e14b004b63
modbus: silence a build warning

Refactor handling the size of modbus_devs, so it doesn't produce a build
warning and still allows the compiler to remove unused code.

This fixes bug #637. It could be reverted once modbus_devs
unconditionally has a member in the struct.

Signed-off-by: Wolfram Sang <redacted>
src/modbus/modbus.c