[issue14656] Add a macro for unreachable code

Martin v. Löwis report at bugs.python.org
Wed May 2 17:39:51 CEST 2012


Martin v. Löwis <martin at v.loewis.de> added the comment:

> Py_UNREACHABLE can be used in this case *to avoid a compiler warning*.

What is the specific warning that you want to avoid, and what specific compiler version produces it currently on what specific code? 

It's not "control reaches end of non-void function without return", is it? (since if the compiler correctly determines that the code is unreachable, it shouldn't complain that control reaches the end of the function, as it doesn't reach the end of the function).

----------

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


More information about the Python-bugs-list mailing list