New submission from Dong-hee Na <donghee.n...@gmail.com>:

/oss/cpython/Modules/_xxsubinterpretersmodule.c:1089:1: warning: 
‘_sharedexception_is_clear’ defined but not used [-Wunused-function]
 1089 | _sharedexception_is_clear(_sharedexception *she)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~
/oss/cpython/Modules/_xxsubinterpretersmodule.c:601:1: warning: 
‘_tbsnapshot_is_clear’ defined but not used [-Wunused-function]
  601 | _tbsnapshot_is_clear(_tbsnapshot *tbs)
      | ^~~~~~~~~~~~~~~~~~~~

Both functions are used by the assert statement.
IMHO, it should be replaced by if statement.

----------
components: C API
messages: 368762
nosy: corona10, eric.snow, vstinner
priority: normal
severity: normal
status: open
title: gcc 10 emits error for unused function: _xxsubinterpretersmodule
type: enhancement
versions: Python 3.9

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40613>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to