Comment 6 for bug 610525

Revision history for this message
Mark Callaghan (mdcallag) wrote :

One of the warnings is from btr0btr line 2928. The call is to:

/************************************************************//**
Determine whether the page is a B-tree leaf.
@return TRUE if the page is a B-tree leaf */
UNIV_INLINE
ibool
page_is_leaf(
/*=========*/
        const page_t* page) /*!< in: page */
        __attribute__((nonnull, pure));

This uses __attribute__ nonnull.

The warning is for:

                if (page_is_leaf(buf_block_get_frame(block))) {

The warning went away when I split this into two lines:
f= buf_block_get_frame(block)
if (page_is_leaf(f)))

This is odd.