Closed snej closed 6 years ago
== has higher precedence than &, so the expression wasn’t doing what was intended.
==
&
This was caught by GCC's -Wparentheses:
-Wparentheses
libnyoci/src/libnyoci/nyoci-outbound.c:323:41: error: suggest parentheses around comparison in operand of '&' [-Werror=parentheses] && (self->current_transaction->flags & NYOCI_TRANSACTION_OBSERVE == NYOCI_TRANSACTION_OBSERVE) ^
==
has higher precedence than&
, so the expression wasn’t doing what was intended.This was caught by GCC's
-Wparentheses
: