This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Avoid warning of unused variables
Type: enhancement Stage: resolved
Components: Build Versions: Python 3.8
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: ZackerySpytz, eamanu, methane
Priority: normal Keywords:

Created on 2019-05-10 00:11 by eamanu, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 13182 merged eamanu, 2019-05-10 00:11
Messages (3)
msg342016 - (view) Author: Emmanuel Arias (eamanu) * Date: 2019-05-10 00:11
When run ./configure && make -j4 there are two warnings on
Object/dictobject.c file about ix and hash variable are not used.

Zachary Ware make me note that when _PyObject_ASSERT is call and NDEBUG
is defined that expand to ((void)0).

So this PR add a #ifndef check to avoid the warnings.
msg342068 - (view) Author: Inada Naoki (methane) * (Python committer) Date: 2019-05-10 10:08
New changeset a2fedd8c910cb5f5b9bd568d6fd44d63f8f5cfa5 by Inada Naoki (Emmanuel Arias) in branch 'master':
bpo-36869: fix warning of unused variables (GH-13182)
https://github.com/python/cpython/commit/a2fedd8c910cb5f5b9bd568d6fd44d63f8f5cfa5
msg351763 - (view) Author: Zackery Spytz (ZackerySpytz) * (Python triager) Date: 2019-09-11 05:26
PR 13182 has been merged, so I think this issue should be closed.
History
Date User Action Args
2022-04-11 14:59:14adminsetgithub: 81050
2019-09-11 05:30:38methanesetstatus: open -> closed
resolution: fixed
stage: resolved
2019-09-11 05:26:57ZackerySpytzsetnosy: + ZackerySpytz
messages: + msg351763
2019-05-10 10:08:13methanesetnosy: + methane
messages: + msg342068
2019-05-10 00:11:13eamanucreate