Subject: | Coverity finding: flagSet() test always false |
DB_File.xs:
539
CID 135005 (#1 of 1): Operands don't affect result (CONSTANT_EXPRESSION_RESULT)
result_independent_of_operands: (flags & 255) == 4294967196U /* (u_int)-100 */ is always false regardless of the values of its operands. This occurs as the logical operand of if.
540 if (flagSet(flags, R_SETCURSOR)) {
CID 135009: Logically dead code (DEADCODE) [select issue]
541 if ((db->dbp)->put(db->dbp, NULL, &key, &value, 0) != 0)
542 return -1 ;
This looks very similar to https://rt.cpan.org/Ticket/Display.html?id=101342 but I'm filing this separately to increase fixing pressure :-)