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: Redundant redeclarations in descrobject.h
Type: compile error Stage:
Components: Extension Modules Versions: Python 3.1, Python 3.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, flub
Priority: normal Keywords: patch

Created on 2009-07-03 11:07 by flub, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
descrobject.diff flub, 2009-07-03 11:07 Remove redundant redeclarations
Messages (2)
msg90047 - (view) Author: Floris Bruynooghe (flub) Date: 2009-07-03 11:07
There are redundant redeclarations for PyGetSetDescr_Type and
PyMemberDescr_Type in descrobject.h.  This is an issue when compiling an
extension module with the -Wredundant-decls flag:

In file included from /usr/local/include/python3.1/Python.h:98,
                 from src/util.c:27:
/usr/local/include/python3.1/descrobject.h:76: error: redundant
redeclaration of ‘PyGetSetDescr_Type’
/usr/local/include/python3.1/descrobject.h:71: error: previous
declaration of ‘PyGetSetDescr_Type’ was here
/usr/local/include/python3.1/descrobject.h:77: error: redundant
redeclaration of ‘PyMemberDescr_Type’
/usr/local/include/python3.1/descrobject.h:72: error: previous
declaration of ‘PyMemberDescr_Type’ was here
error: command 'gcc' failed with exit status 1

The patch is trivial.
msg90053 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2009-07-03 13:30
Fixed in r73809.
History
Date User Action Args
2022-04-11 14:56:50adminsetgithub: 50654
2009-07-03 13:30:51benjamin.petersonsetstatus: open -> closed

nosy: + benjamin.peterson
messages: + msg90053

resolution: fixed
2009-07-03 11:07:21flubcreate