[issue30287] cpython and Clang Static Analyzer

Mark Dickinson report at bugs.python.org
Thu May 11 04:07:57 EDT 2017


Mark Dickinson added the comment:

> I guess return -1 instead of bits=0 will silent both gcc and the static analyzer warning.

That's a possibility, though we should also set an exception in that case (since returning an error value without setting an exception is also something that might be picked up by a CPython-oriented static analyser in the future).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30287>
_______________________________________


More information about the Python-bugs-list mailing list