classification
Title: Warning in Parser/grammar1.c
Type: compile error Stage: resolved
Components: Interpreter Core Versions: Python 3.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, serhiy.storchaka
Priority: normal Keywords:

Created on 2012-10-31 15:25 by serhiy.storchaka, last changed 2012-10-31 17:58 by serhiy.storchaka. This issue is now closed.

Messages (3)
msg174292 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2012-10-31 15:25
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 *".
msg174342 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2012-10-31 17:39
e87d617cef23
msg174348 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2012-10-31 17:58
Thanks.
History
Date User Action Args
2012-10-31 17:58:43serhiy.storchakasetmessages: + msg174348
2012-10-31 17:58:15serhiy.storchakasetstage: needs patch -> resolved
2012-10-31 17:39:53benjamin.petersonsetstatus: open -> closed
resolution: fixed
messages: + msg174342
2012-10-31 15:25:42serhiy.storchakacreate