From: Uwe Hermann Date: Tue, 15 May 2018 22:09:53 +0000 (+0200) Subject: type_decoder.c: Fix a scan-build warning. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=60d4764a9c699d0b4aca656831a4d8d09568b659;p=libsigrokdecode.git 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); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- 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