New submission from Floris Bruynooghe floris.bruynoo...@gmail.com:
When compiling with -Wredundant-decls gcc spots a redundant declaration:
f...@laurie:sandbox$ cat test.c
#include Python.h
#include stdio.h
int main(void)
{
printf(hello\n);
return 0;
}
f...@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
f...@laurie:sandbox$
This is annoying since when developing extension modules I usually use
-Werror on top of -Wredundant-decls (among others).
Regards
Floris
--
components: Extension Modules
messages: 79870
nosy: flub
severity: normal
status: open
title: Redundant declaration in pyerrors.h
type: compile error
versions: Python 3.0, Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4950
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com