[New-bugs-announce] [issue35878] ast.c: end_col_offset may be used uninitialized in this function

STINNER Victor report at bugs.python.org
Fri Feb 1 06:22:41 EST 2019


New submission from STINNER Victor <vstinner at redhat.com>:

https://buildbot.python.org/all/#builders/103/builds/2023

There are many "end_col_offset may be used uninitialized in this function" warnings. Example:

In file included from Python/ast.c:7:0:
Python/ast.c: In function ‘ast_for_funcdef_impl’:
./Include/Python-ast.h:484:66: warning: ‘end_col_offset’ may be used uninitialized in this function [-Wmaybe-uninitialized]
 #define FunctionDef(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) _Py_FunctionDef(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)
                                                                  ^~~~~~~~~~~~~~~
Python/ast.c:1738:21: note: ‘end_col_offset’ was declared here
     int end_lineno, end_col_offset;
                     ^~~~~~~~~~~~~~

----------
components: Interpreter Core
messages: 334670
nosy: emilyemorehouse, levkivskyi, vstinner
priority: normal
severity: normal
status: open
title: ast.c: end_col_offset may be used uninitialized in this function
type: compile error
versions: Python 3.8

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


More information about the New-bugs-announce mailing list