[New-bugs-announce] [issue36811] Warning when compiling _elementree.c

Stéphane Wirtel report at bugs.python.org
Mon May 6 10:27:22 EDT 2019


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

Hi Stefan,

When I compile the last master, I get this warning.

Could do you try?

Thanks

/home/stephane/src/github.com/python/cpython/Include -I/home/stephane/src/github.com/python/cpython -c /home/stephane/src/github.com/python/cpython/Modules/_elementtree.c -o build/temp.linux-x86_64-3.8-pydebug/home/stephane/src/github.com/python/cpython/Modules/_elementtree.o
/home/stephane/src/github.com/python/cpython/Modules/_elementtree.c: In function ‘checkpath’:
/home/stephane/src/github.com/python/cpython/Modules/_elementtree.c:1174:44: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
                 p[1] == '}' || p[1] == '*' && p[2] == '}')) {
                                ~~~~~~~~~~~~^~~~~~~~~~~~~~

----------
assignee: scoder
components: Build
messages: 341507
nosy: matrixise, scoder
priority: normal
severity: normal
status: open
title: Warning when compiling _elementree.c
versions: Python 3.8

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


More information about the New-bugs-announce mailing list