[issue31338] Use abort() for code we never expect to hit

STINNER Victor report at bugs.python.org
Tue Sep 5 13:18:27 EDT 2017


STINNER Victor added the comment:

> Or simply you would write:
>
>    Py_UNREACHABLE();
>     return NULL;

I recall that I had to fix warnings when using clang on:

Py_FatalError("...");
return NULL;

See bpo-28152.

I don't know if it's related to this issue.

----------

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


More information about the Python-bugs-list mailing list