New submission from Floris Bruynooghe <floris.bruynoo...@gmail.com>:

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.

----------
components: Extension Modules
files: descrobject.diff
keywords: patch
messages: 90047
nosy: flub
severity: normal
status: open
title: Redundant redeclarations in descrobject.h
type: compile error
versions: Python 3.1, Python 3.2
Added file: http://bugs.python.org/file14435/descrobject.diff

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

Reply via email to