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

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

Messages (2)
msg79870 - (view) Author: Floris Bruynooghe (flub) Date: 2009-01-14 18:33
When compiling with -Wredundant-decls gcc spots a redundant declaration:

flub@laurie:sandbox$ cat test.c 
#include <Python.h>
#include <stdio.h>

int main(void)
{
        printf("hello\n");
        return 0;
}
flub@laurie:sandbox$ gcc -I /usr/local/include/python3.0/
-Wredundant-decls test.c 
In file included from /usr/local/include/python3.0/Python.h:102,
                 from test.c:1:
/usr/local/include/python3.0/pyerrors.h:155: warning: redundant
redeclaration of ‘PyExc_BufferError’
/usr/local/include/python3.0/pyerrors.h:147: warning: previous
declaration of ‘PyExc_BufferError’ was here
flub@laurie:sandbox$

This is annoying since when developing extension modules I usually use
-Werror on top of -Wredundant-decls (among others).

Regards
Floris
msg79930 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2009-01-16 03:07
Fixed in r68629.
History
Date User Action Args
2022-04-11 14:56:44adminsetgithub: 49200
2009-01-16 03:07:14benjamin.petersonsetstatus: open -> closed
resolution: fixed
messages: + msg79930
nosy: + benjamin.peterson
2009-01-14 18:33:26flubcreate