Project: datamanagement
Issue DM-6279: Fix possible logic error in pex_policy dictionary
Investigate and fix the following warning in {{pex_policy}}. {code} src/Dictionary.cc:312:9: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses] if (!getType() == Policy::POLICY) // should have checked this at a higher level ^ ~~ src/Dictionary.cc:312:9: note: add parentheses after the '!' to evaluate the comparison first if (!getType() == Policy::POLICY) // should have checked this at a higher level ^ ( ) src/Dictionary.cc:312:9: note: add parentheses around left hand side expression to silence this warning if (!getType() == Policy::POLICY) // should have checked this at a higher level ^ ( ) src/Dictionary.cc:312:20: warning: comparison of constant 'POLICY' (5) with expression of type 'bool' is always false [-Wtautological-constant-out-of-range-compare] if (!getType() == Policy::POLICY) // should have checked this at a higher level {code}
Story points: 1