clang 3.5 can not compile perconaft

Description

gets:
/home/rfp/ft-index/ft/txn/rollback.cc:95:15: error: address of
'log->rollentry_arena' will always evaluate to 'true'
[-Werror,-Wpointer-bool-conversion]
if (&log->rollentry_arena) {

in this function:
PAIR_ATTR
rollback_memory_size(ROLLBACK_LOG_NODE log) {
size_t size = sizeof(*log);
if (&log->rollentry_arena) {
size += log->rollentry_arena.total_footprint();
}
return make_rollback_pair_attr(size);
}

the if statement makes no sense since rollentry_arena is a member of
rollback_log_node.

Environment

None

Activity

Show:
George Lorch
August 13, 2015, 9:08 PM
Fixed

Assignee

Unassigned

Reporter

George Lorch

Labels

None

External issue ID

None

Freshdesk Tickets

None

Fix versions

Priority

Minor