Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redundant declaration in pyerrors.h #49200

Closed
flub mannequin opened this issue Jan 14, 2009 · 2 comments
Closed

Redundant declaration in pyerrors.h #49200

flub mannequin opened this issue Jan 14, 2009 · 2 comments
Labels
build The build process and cross-build extension-modules C modules in the Modules dir

Comments

@flub
Copy link
Mannequin

flub mannequin commented Jan 14, 2009

BPO 4950
Nosy @benjaminp

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2009-01-16.03:07:14.854>
created_at = <Date 2009-01-14.18:33:26.677>
labels = ['extension-modules', 'build']
title = 'Redundant declaration in pyerrors.h'
updated_at = <Date 2009-01-16.03:07:14.852>
user = 'https://bugs.python.org/flub'

bugs.python.org fields:

activity = <Date 2009-01-16.03:07:14.852>
actor = 'benjamin.peterson'
assignee = 'none'
closed = True
closed_date = <Date 2009-01-16.03:07:14.854>
closer = 'benjamin.peterson'
components = ['Extension Modules']
creation = <Date 2009-01-14.18:33:26.677>
creator = 'flub'
dependencies = []
files = []
hgrepos = []
issue_num = 4950
keywords = []
message_count = 2.0
messages = ['79870', '79930']
nosy_count = 2.0
nosy_names = ['flub', 'benjamin.peterson']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = 'compile error'
url = 'https://bugs.python.org/issue4950'
versions = ['Python 3.0', 'Python 3.1']

@flub
Copy link
Mannequin Author

flub mannequin commented Jan 14, 2009

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 ofPyExc_BufferError’
/usr/local/include/python3.0/pyerrors.h:147: warning: previous
declaration ofPyExc_BufferErrorwas 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

@flub flub mannequin added extension-modules C modules in the Modules dir build The build process and cross-build labels Jan 14, 2009
@benjaminp
Copy link
Contributor

Fixed in r68629.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build The build process and cross-build extension-modules C modules in the Modules dir
Projects
None yet
Development

No branches or pull requests

1 participant