You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Leif Hedstrom (JIRA)" <ji...@apache.org> on 2013/07/01 16:50:20 UTC
[jira] [Updated] (TS-1991) clang complaint: logical not is only
applied to the left hand side of this comparison
[ https://issues.apache.org/jira/browse/TS-1991?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leif Hedstrom updated TS-1991:
------------------------------
Fix Version/s: 3.3.5
> clang complaint: logical not is only applied to the left hand side of this comparison
> -------------------------------------------------------------------------------------
>
> Key: TS-1991
> URL: https://issues.apache.org/jira/browse/TS-1991
> Project: Traffic Server
> Issue Type: Bug
> Components: Build, Configuration
> Reporter: Igor Galić
> Fix For: 3.3.5
>
>
> {noformat}
> CXX IpMapConf.lo
> IpMapConf.cc:60:23: error: logical not is only applied to the left hand side of this comparison [-Werror,-Wlogical-not-parentheses]
> if (bracketed_p && (! *i < n || ']' != *src)) {
> ^ ~
> IpMapConf.cc:60:23: note: add parentheses after the '!' to evaluate the comparison first
> if (bracketed_p && (! *i < n || ']' != *src)) {
> ^
> ( )
> IpMapConf.cc:60:23: note: add parentheses around left hand side expression to silence this warning
> if (bracketed_p && (! *i < n || ']' != *src)) {
> ^
> ( )
> 1 error generated.
> make[3]: *** [IpMapConf.lo] Error 1
> {noformat}
--
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