[New-bugs-announce] [issue32711] Fix warnings for Python/ast_unparse.c

Stéphane Wirtel report at bugs.python.org
Mon Jan 29 08:35:09 EST 2018


New submission from Stéphane Wirtel <stephane at wirtel.be>:

Python/ast_unparse.c: At top level:
Python/ast_unparse.c:1122:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
 maybe_init_static_strings()
 ^~~~~~~~~~~~~~~~~~~~~~~~~
Python/ast_unparse.c: In function ‘append_ast_binop’:
Python/ast_unparse.c:105:15: warning: ‘op’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     if (-1 == append_charp(writer, op)) {
               ^~~~~~~~~~~~~~~~~~~~~~~~
Python/ast_unparse.c: In function ‘append_ast_unaryop’:
Python/ast_unparse.c:132:15: warning: ‘op’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     if (-1 == append_charp(writer, op)) {
               ^~~~~~~~~~~~~~~~~~~~~~~~

----------
components: Interpreter Core
messages: 311131
nosy: matrixise
priority: normal
severity: normal
status: open
title: Fix warnings for Python/ast_unparse.c
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32711>
_______________________________________


More information about the New-bugs-announce mailing list