]> sigrok.org Git - libsigrok.git/commit
ols, pipistrello-ols: silence "assigned, not used" compiler warning
authorGerhard Sittig <redacted>
Fri, 9 Feb 2018 18:23:31 +0000 (19:23 +0100)
committerUwe Hermann <redacted>
Fri, 9 Feb 2018 20:37:39 +0000 (21:37 +0100)
commitb04cbd0ba3301396bd9e1e31c6f462087caf1de8
tree495f5ab73ccd5ba4ba53b0e8bc9ca9363bd2f897
parent8eadb70a37946c268d9bef312478096e96009c3d
ols, pipistrello-ols: silence "assigned, not used" compiler warning

Each code path either assigns to 'flags', or leaves the routine. There
is no potential path that leaves the variable at the initially assigned
value, so the assignment took no effect. Remove it.

Nit: Trim the source code line length while we are here.

This was reported by clang's scan-build.
src/hardware/openbench-logic-sniffer/api.c
src/hardware/pipistrello-ols/api.c