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)))
One of the warnings is from btr0btr line 2928. The call is to:
/****** ******* ******* ******* ******* ******* ******* ******* *****// **
__attribute_ _((nonnull, pure));
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 */
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: get_frame( block)
f= buf_block_
if (page_is_leaf(f)))
This is odd.