Message79870
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 |
|
Date |
User |
Action |
Args |
2009-01-14 18:33:28 | flub | set | recipients:
+ flub |
2009-01-14 18:33:28 | flub | set | messageid: <1231958008.57.0.172561550702.issue4950@psf.upfronthosting.co.za> |
2009-01-14 18:33:26 | flub | link | issue4950 messages |
2009-01-14 18:33:24 | flub | create | |
|