]> sigrok.org Git - libsigrok.git/commit
Other method to avoid "unused var" compiler warnings.
authorUwe Hermann <redacted>
Thu, 24 Nov 2011 21:57:48 +0000 (22:57 +0100)
committerUwe Hermann <redacted>
Thu, 24 Nov 2011 21:57:48 +0000 (22:57 +0100)
commitcb93f8a927e6fb2cb1d89176766c5c9c398db5c3
tree68d6495dccaf426c8e69509e89a8cc11d8940b36
parentcc8a7d250cf7daff452ce376224c9853529204ca
Other method to avoid "unused var" compiler warnings.

The '(void)varname' method is nicer than 'varname = varname' and also
prevents warnings when compiling sigrok with clang instead of gcc.
datastore.c
hardware/asix-sigma/asix-sigma.c
hardware/chronovu-la8/chronovu-la8.c
hardware/demo/demo.c
hardware/openbench-logic-sniffer/ols.c
hardware/saleae-logic/saleae-logic.c
hardware/zeroplus-logic-cube/zeroplus.c
hwplugin.c
output/output_binary.c
session_driver.c