Message299210
This can be repro by setting -Wshadow-compatible-local when using gcc to compile Python-ast.c.
An example on my machine:
➜ cpython git:(69c0db5050) ✗ gcc-7 -Wshadow-compatible-local -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I./Include -I. -I/usr/local/opt/readline/include -I/usr/local/opt/openssl/include -I/Users/python/.pyenv/versions/3.6.1/include -I/usr/local/include -I/Users/python/.pyenv/versions/3.6.1/include/python3.6m -c Python/Python-ast.c -o build/temp.macosx-10.12-x86_64-3.6/Python-ast.o
Python/Python-ast.c: In function 'obj2ast_stmt':
Python/Python-ast.c:4586:25: warning: declaration of 'value' shadows a previous local [-Wshadow=compatible-local]
expr_ty value;
^~~~~
Python/Python-ast.c:4570:17: note: shadowed declaration is here
expr_ty value;
^~~~~ |
|
Date |
User |
Action |
Args |
2017-07-26 06:26:47 | OswinC | set | recipients:
+ OswinC, brett.cannon, ncoghlan, benjamin.peterson, yselivanov |
2017-07-26 06:26:47 | OswinC | set | messageid: <1501050407.3.0.941623345842.issue30841@psf.upfronthosting.co.za> |
2017-07-26 06:26:47 | OswinC | link | issue30841 messages |
2017-07-26 06:26:46 | OswinC | create | |
|