Message311132
I'm getting slightly different warnings with GCC 7.2.1:
Python/ast_unparse.c: In function ‘append_formattedvalue’:
Python/ast_unparse.c:859:41: warning: ordered comparison of pointer with integer zero [-Wextra]
if (e->v.FormattedValue.format_spec > 0) {
^
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_expr’:
Python/ast_unparse.c:23:16: warning: ‘op’ may be used uninitialized in this function [-Wmaybe-uninitialized]
return _PyUnicodeWriter_WriteASCIIString(writer, charp, -1);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Python/ast_unparse.c:119:17: note: ‘op’ was declared here
const char *op;
^~
Python/ast_unparse.c:23:16: warning: ‘op’ may be used uninitialized in this function [-Wmaybe-uninitialized]
return _PyUnicodeWriter_WriteASCIIString(writer, charp, -1);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Python/ast_unparse.c:79:17: note: ‘op’ was declared here
const char *op; |
|
Date |
User |
Action |
Args |
2018-01-29 13:38:05 | christian.heimes | set | recipients:
+ christian.heimes, matrixise |
2018-01-29 13:38:05 | christian.heimes | set | messageid: <1517233085.15.0.467229070634.issue32711@psf.upfronthosting.co.za> |
2018-01-29 13:38:05 | christian.heimes | link | issue32711 messages |
2018-01-29 13:38:05 | christian.heimes | create | |
|