Ammar Askar <[email protected]> added the comment:
For the control path warning, that can be fixed by just hinting to the compiler
that the function doesn't return like so:
# ifdef __GNUC__
__attribute__ ((noreturn))
# elif defined(_MSC_VER)
__declspec(noreturn)
# endif
static inline void
_Py_UNREACHABLE()
{
(https://godbolt.org/z/AG9tx_)
----------
nosy: +ammar2
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue38205>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com