summaryrefslogtreecommitdiff
path: root/type_decoder.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2018-05-16 00:09:53 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2018-05-16 12:17:42 +0200
commit60d4764a9c699d0b4aca656831a4d8d09568b659 (patch)
tree32b1ca1827e7a5bd8bc4d8bf72ae167f02be2e72 /type_decoder.c
parent25d3576134e7b57ca169e8e4ebd4e4ce5dcf62dd (diff)
downloadlibsigrokdecode-60d4764a9c699d0b4aca656831a4d8d09568b659.tar.gz
libsigrokdecode-60d4764a9c699d0b4aca656831a4d8d09568b659.zip
type_decoder.c: Fix a scan-build warning.
type_decoder.c:836:3: warning: Value stored to 'ret' is never read ret = process_samples_until_condition_match(di, &found_match); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Diffstat (limited to 'type_decoder.c')
-rw-r--r--type_decoder.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/type_decoder.c b/type_decoder.c
index 35187a5..2bb3616 100644
--- a/type_decoder.c
+++ b/type_decoder.c
@@ -836,7 +836,9 @@ static PyObject *Decoder_wait(PyObject *self, PyObject *args)
* while the termination request still gets signalled.
*/
found_match = FALSE;
- ret = process_samples_until_condition_match(di, &found_match);
+
+ /* Ignore return value for now, should never be negative. */
+ (void)process_samples_until_condition_match(di, &found_match);
Py_END_ALLOW_THREADS