Clang warnings corrections.
Issue #104
new
https://bitbucket.org/dayturn/kokua-mac/commits/e33e0a3581621bc1e0cabd4893621352ef30526e
Is this something to pull in RLV?
Comments (2)
-
reporter -
reporter We will be stripping that changeset.
- Log in to comment
Please disregard. Looks like the logic if (size == 1 || (size > 1 && action.find(tokens[1]) != -1)) { isn't correct with this change. Should it be if (size == 1 || size > 1) && (action.find(tokens[1]) != -1)) {
the warnings we receive receive are
/Users/dayturn/Library/Developer/kokuant/indra/newview/RRInterface.cpp:770:27: note: place parentheses around the '&&' expression to silence this warning
it->second == action && mContainsPermissive) { ^
( )
/Users/dayturn/Library/Developer/kokuant/indra/newview/RRInterface.cpp:1210:30: warning: '&&' within ' ' [-Wlogical-op-parentheses] if (size == 1 size > 1 && action.find(tokens[1]) != -1) {
~^~~~~~~~~/Users/dayturn/Library/Developer/kokuant/indra/newview/RRInterface.cpp:1210:30: note: place parentheses around the '&&' expression to silence this warning
if (size == 1 size > 1 && action.find(tokens[1]) != -1) { ^
( )
/Users/dayturn/Library/Developer/kokuant/indra/newview/RRInterface.cpp:2221:17: warning: '&&' within ' ' [-Wlogical-op-parentheses] if( avatar && avatar->isWearingAttachment( item->getLinkedUUID() )
/Users/dayturn/Library/Developer/kokuant/indra/newview/RRInterface.cpp:2221:17: note: place parentheses around the '&&' expression to silence this warning
if( avatar && avatar->isWearingAttachment( item->getLinkedUUID() )
^
( )
/Users/dayturn/Library/Developer/kokuant/indra/newview/RRInterface.cpp:3808:19: warning: unused variable 'it' [-Wunused-variable]
RRMAP::iterator it = mSpecialObjectBehaviours.begin ();
^
/Users/dayturn/Library/Developer/kokuant/indra/newview/RRInterface.cpp:3916:19: warning: unused variable 'it' [-Wunused-variable]
RRMAP::iterator it = mSpecialObjectBehaviours.begin ();
^
5 warnings generated.