diff options
Diffstat (limited to 'storage/innobase/include/page0page.h')
-rw-r--r-- | storage/innobase/include/page0page.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/storage/innobase/include/page0page.h b/storage/innobase/include/page0page.h index 8d1e5b17542..3bb622127fb 100644 --- a/storage/innobase/include/page0page.h +++ b/storage/innobase/include/page0page.h @@ -264,7 +264,7 @@ page_header_get_offs( /*=================*/ const page_t* page, /*!< in: page */ ulint field) /*!< in: PAGE_FREE, ... */ - MY_ATTRIBUTE((nonnull, pure)); + MY_ATTRIBUTE((warn_unused_result)); /*************************************************************//** Returns the pointer stored in the given header field, or NULL. */ @@ -530,7 +530,7 @@ bool page_is_leaf( /*=========*/ const page_t* page) /*!< in: page */ - MY_ATTRIBUTE((nonnull, pure)); + MY_ATTRIBUTE((warn_unused_result)); /************************************************************//** Determine whether the page is empty. @return true if the page is empty (PAGE_N_RECS = 0) */ @@ -539,7 +539,7 @@ bool page_is_empty( /*==========*/ const page_t* page) /*!< in: page */ - MY_ATTRIBUTE((nonnull, pure)); + MY_ATTRIBUTE((warn_unused_result)); /** Determine whether a page is an index root page. @param[in] page page frame @return true if the page is a root page of an index */ @@ -547,7 +547,7 @@ UNIV_INLINE bool page_is_root( const page_t* page) - __attribute__((warn_unused_result)); + MY_ATTRIBUTE((warn_unused_result)); /************************************************************//** Determine whether the page contains garbage. @return true if the page contains garbage (PAGE_GARBAGE is not 0) */ @@ -556,7 +556,7 @@ bool page_has_garbage( /*=============*/ const page_t* page) /*!< in: page */ - MY_ATTRIBUTE((nonnull, pure)); + MY_ATTRIBUTE((warn_unused_result)); /************************************************************//** Gets the pointer to the next record on the page. @return pointer to next record */ @@ -656,7 +656,7 @@ ibool page_rec_is_user_rec( /*=================*/ const rec_t* rec) /*!< in: record */ - MY_ATTRIBUTE((const)); + MY_ATTRIBUTE((warn_unused_result)); /************************************************************//** TRUE if the record is the supremum record on a page. @return TRUE if the supremum record */ @@ -665,7 +665,7 @@ ibool page_rec_is_supremum( /*=================*/ const rec_t* rec) /*!< in: record */ - MY_ATTRIBUTE((const)); + MY_ATTRIBUTE((warn_unused_result)); /************************************************************//** TRUE if the record is the infimum record on a page. @@ -675,7 +675,7 @@ ibool page_rec_is_infimum( /*================*/ const rec_t* rec) /*!< in: record */ - MY_ATTRIBUTE((const)); + MY_ATTRIBUTE((warn_unused_result)); /************************************************************//** true if the record is the first user record on a page. @@ -686,7 +686,7 @@ page_rec_is_first( /*==============*/ const rec_t* rec, /*!< in: record */ const page_t* page) /*!< in: page */ - __attribute__((warn_unused_result)); + MY_ATTRIBUTE((warn_unused_result)); /************************************************************//** true if the record is the second user record on a page. @@ -697,7 +697,7 @@ page_rec_is_second( /*===============*/ const rec_t* rec, /*!< in: record */ const page_t* page) /*!< in: page */ - __attribute__((warn_unused_result)); + MY_ATTRIBUTE((warn_unused_result)); /************************************************************//** true if the record is the last user record on a page. @@ -708,7 +708,7 @@ page_rec_is_last( /*=============*/ const rec_t* rec, /*!< in: record */ const page_t* page) /*!< in: page */ - __attribute__((warn_unused_result)); + MY_ATTRIBUTE((warn_unused_result)); /************************************************************//** true if the record is the second last user record on a page. @@ -719,7 +719,7 @@ page_rec_is_second_last( /*====================*/ const rec_t* rec, /*!< in: record */ const page_t* page) /*!< in: page */ - __attribute__((warn_unused_result)); + MY_ATTRIBUTE((warn_unused_result)); /***************************************************************//** Looks for the record which owns the given record. |