]> sigrok.org Git - libsigrok.git/commit
serial_hid: silence compiler warning (unused value)
authorGerhard Sittig <redacted>
Sun, 16 Jun 2019 08:30:50 +0000 (10:30 +0200)
committerGerhard Sittig <redacted>
Sun, 21 Aug 2022 15:45:11 +0000 (17:45 +0200)
commit487d4528be9fce621d2a7111fcb16056a0048ad8
tree5d4e5f48c29b08947f80562ad4a2e9f03be29979
parent819277b5d87dfe3038f72d1d6560412553fbd415
serial_hid: silence compiler warning (unused value)

Silence a compiler warning about assigning a value to a variable that's
not used in subsequent instructions. This 'have_chip' condition is worth
keeping around, in case the HID chip search code receives updates later.
Removing the assignment may complicate maintenance, or result in
incomplete diagnostics during research.

../src/serial_hid.c:1066:3: warning: Value stored to 'have_chip' is never read
                have_chip = 1;
src/serial_hid.c