lib/checkcondition.cpp:490:9: warning: use of bitwise '&' with boolean operands [-Wbitwise-instead-of-logical]
lib/checkcondition.cpp:552:9: warning: use of bitwise '&' with boolean operands [-Wbitwise-instead-of-logical]
lib/checkcondition.cpp:814:9: warning: use of bitwise '&' with boolean operands [-Wbitwise-instead-of-logical]
lib/checkcondition.cpp:829:9: warning: use of bitwise '&' with boolean operands [-Wbitwise-instead-of-logical]
lib/checkcondition.cpp:844:9: warning: use of bitwise '&' with boolean operands [-Wbitwise-instead-of-logical]
For the first one:
if(diag(tok1)&diag(tok2))return;
Must there always be two calls to diag here, or would use of && be more appropriate ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
lib/checkcondition.cpp:490:9: warning: use of bitwise '&' with boolean operands [-Wbitwise-instead-of-logical]
lib/checkcondition.cpp:552:9: warning: use of bitwise '&' with boolean operands [-Wbitwise-instead-of-logical]
lib/checkcondition.cpp:814:9: warning: use of bitwise '&' with boolean operands [-Wbitwise-instead-of-logical]
lib/checkcondition.cpp:829:9: warning: use of bitwise '&' with boolean operands [-Wbitwise-instead-of-logical]
lib/checkcondition.cpp:844:9: warning: use of bitwise '&' with boolean operands [-Wbitwise-instead-of-logical]
For the first one:
Must there always be two calls to diag here, or would use of && be more appropriate ?