[issue38205] Python no longer compiles without small integer singletons

Ammar Askar report at bugs.python.org
Wed Sep 18 21:34:35 EDT 2019


Ammar Askar <ammar at ammaraskar.com> 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 <report at bugs.python.org>
<https://bugs.python.org/issue38205>
_______________________________________


More information about the Python-bugs-list mailing list