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

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

Commit d10472eb6bc4ad6922abf29d339a91b5b37d3260 in trafficserver's branch 
refs/heads/master from [~amc]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=d10472e ]

TS-3935: Fix clang errors with for_Vec


> Compile errors (warnings) with modern clang
> -------------------------------------------
>
>                 Key: TS-3935
>                 URL: https://issues.apache.org/jira/browse/TS-3935
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Management API
>            Reporter: Leif Hedstrom
>            Assignee: Alan M. Carroll
>             Fix For: 6.1.0
>
>
> {code}
>   CXX      CoreAPI.lo
> ../../../../mgmt/api/CoreAPI.cc:370:188: error: use of logical '||' with 
> constant operand [-Werror,-Wconstant-logical-operand]
>   if ((threads).n) for (pid_t *qq__threadid = (pid_t *)0, threadid = 
> (threads).v[0]; ((uintptr_t)(qq__threadid) < (threads).length()) && 
> ((threadid = (threads).v[(intptr_t)qq__threadid]) || 1); qq__threadid = 
> (pid_t *)(((intptr_t)qq__threadid) + 1))
>                                                                               
>                                                                               
>                                ^  ~
> ../../../../mgmt/api/CoreAPI.cc:370:188: note: use '|' for a bitwise operation
>   if ((threads).n) for (pid_t *qq__threadid = (pid_t *)0, threadid = 
> (threads).v[0]; ((uintptr_t)(qq__threadid) < (threads).length()) && 
> ((threadid = (threads).v[(intptr_t)qq__threadid]) || 1); qq__threadid = 
> (pid_t *)(((intptr_t)qq__threadid) + 1))
>                                                                               
>                                                                               
>                                ^~
>                                                                               
>                                                                               
>                                |
> 1 error generated.
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to