[New-bugs-announce] [issue38426] declare visit_validate in Py_DEBUG macro

Dong-hee Na report at bugs.python.org
Thu Oct 10 01:31:15 EDT 2019


New submission from Dong-hee Na <donghee.na92 at gmail.com>:

I've got the warining like this.

Modules/gcmodule.c:1925:1: warning: ‘visit_validate’ defined but not used [-Wunused-function]
 visit_validate(PyObject *op, void *parent_raw)

This looks like only used in pydebug.
I'd like to propose declaring this function only in #ifdef Py_DEBUG.

My environment is 
CentOS Linux release 7.6.1810
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-36)

----------
assignee: corona10
components: Interpreter Core
messages: 354313
nosy: corona10, serhiy.storchaka, vstinner
priority: normal
severity: normal
status: open
title: declare visit_validate in Py_DEBUG macro
type: enhancement
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38426>
_______________________________________


More information about the New-bugs-announce mailing list