From 60d4764a9c699d0b4aca656831a4d8d09568b659 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Wed, 16 May 2018 00:09:53 +0200 Subject: [PATCH] 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); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- type_decoder.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.30.2