[New-bugs-announce] [issue40613] gcc 10 emits error for unused function: _xxsubinterpretersmodule
Dong-hee Na
report at bugs.python.org
Wed May 13 02:26:16 EDT 2020
New submission from Dong-hee Na <donghee.na92 at 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 <report at bugs.python.org>
<https://bugs.python.org/issue40613>
_______________________________________
More information about the New-bugs-announce
mailing list