[ 
https://issues.apache.org/jira/browse/TS-2001?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13707068#comment-13707068
 ] 

ASF subversion and git services commented on TS-2001:
-----------------------------------------------------

Commit e37507112070a8566e1de0538c3df5a2d62d925c in branch refs/heads/master 
from [~i.galic]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=e375071 ]

TS-2001: logical only applied to left side of comparison

clang complaint: logical not is only applied to the left hand side of
this comparison
so we simplify.

                
> clang complaint in HttpTransact.cc: logical not is only applied to the left 
> hand side of this comparison
> --------------------------------------------------------------------------------------------------------
>
>                 Key: TS-2001
>                 URL: https://issues.apache.org/jira/browse/TS-2001
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Cleanup
>            Reporter: Igor Galić
>
> {code}
>   CXX    HttpTransact.o
> HttpTransact.cc:5186:9: error: logical not is only applied to the left hand 
> side of this comparison [-Werror,-Wlogical-not-parentheses]
>         ! s->client_info.transfer_encoding == CHUNKED_ENCODING) {
>         ^                                  ~~
> HttpTransact.cc:5186:9: note: add parentheses after the '!' to evaluate the 
> comparison first
>         ! s->client_info.transfer_encoding == CHUNKED_ENCODING) {
>         ^
>           (                                                   )
> HttpTransact.cc:5186:9: note: add parentheses around left hand side 
> expression to silence this warning
>         ! s->client_info.transfer_encoding == CHUNKED_ENCODING) {
>         ^
>         (                                 )
> 1 error generated.
> make[3]: *** [HttpTransact.o] Error 1
> make[3]: Leaving directory `/home/igalic/src/asf/trafficserver/proxy/http'
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to