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

Warning in Parser/grammar1.c #60579

Closed
serhiy-storchaka opened this issue Oct 31, 2012 · 3 comments
Closed

Warning in Parser/grammar1.c #60579

serhiy-storchaka opened this issue Oct 31, 2012 · 3 comments
Labels
build The build process and cross-build interpreter-core (Objects, Python, Grammar, and Parser dirs)

Comments

@serhiy-storchaka
Copy link
Member

BPO 16375
Nosy @benjaminp, @serhiy-storchaka

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 2012-10-31.17:39:53.522>
created_at = <Date 2012-10-31.15:25:42.470>
labels = ['interpreter-core', 'build']
title = 'Warning in Parser/grammar1.c'
updated_at = <Date 2012-10-31.17:58:43.031>
user = 'https://github.com/serhiy-storchaka'

bugs.python.org fields:

activity = <Date 2012-10-31.17:58:43.031>
actor = 'serhiy.storchaka'
assignee = 'none'
closed = True
closed_date = <Date 2012-10-31.17:39:53.522>
closer = 'benjamin.peterson'
components = ['Interpreter Core']
creation = <Date 2012-10-31.15:25:42.470>
creator = 'serhiy.storchaka'
dependencies = []
files = []
hgrepos = []
issue_num = 16375
keywords = []
message_count = 3.0
messages = ['174292', '174342', '174348']
nosy_count = 2.0
nosy_names = ['benjamin.peterson', 'serhiy.storchaka']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'compile error'
url = 'https://bugs.python.org/issue16375'
versions = ['Python 3.4']

@serhiy-storchaka
Copy link
Member Author

The changeset 7e0e15d9957f causes annoying GCC warning in Parser/grammar1.c.

Possible solutions:

  1. Revert this changes back.
  2. Prohibit this type of warnings by the compiler flags.
  3. Explicitly cast _PyParser_TokenNames to "char *" in PyGrammar_LabelRepr().
  4. Make PyGrammar_LabelRepr() returns "const char *".

@serhiy-storchaka serhiy-storchaka added interpreter-core (Objects, Python, Grammar, and Parser dirs) build The build process and cross-build labels Oct 31, 2012
@benjaminp
Copy link
Contributor

e87d617cef23

@serhiy-storchaka
Copy link
Member Author

Thanks.

@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 interpreter-core (Objects, Python, Grammar, and Parser dirs)
Projects
None yet
Development

No branches or pull requests

2 participants