WT_ASSERT(
session, upd == NULL || upd->type != WT_UPDATE_BIRTHMARK || upd->type != WT_UPDATE_TOMBSTONE);
is always true in txn_read and causing the complier to complain with
In file included from ../../../src/include/wt_internal.h:424:0,
from ../../../test/utility/test_util.h:28,
from ../../../bench/wtperf/wtperf.h:32,
from ../../../bench/wtperf/misc.c:29:
../../../src/include/txn.i: In function '__wt_txn_read':
../../../src/include/txn.i:889:5: warning: 'and' of mutually exclusive equal-tests is always 0
WT_ASSERT(
It should be changed to
WT_ASSERT(
session, upd == NULL || (upd->type != WT_UPDATE_BIRTHMARK && upd->type != WT_UPDATE_TOMBSTONE));
- is related to
-
WT-5571 Evergreen loses compiler warnings, need way to add to CFLAGS
- Closed