Commit 51d51871 authored by marko's avatar marko

branches/zip: Remove __attribute__((warn_unused_result)), because it does

not work in GCC 3.3.  It was useful during the development of zip compression,
when some placeholder code ignored the return values of some functions.
parent e7c63e2c
......@@ -749,7 +749,7 @@ page_copy_rec_list_end(
rec_t* rec, /* in: record on page */
dict_index_t* index, /* in: record descriptor */
mtr_t* mtr) /* in: mtr */
__attribute__((warn_unused_result, nonnull));
__attribute__((nonnull));
/*****************************************************************
Copies records from page to new_page, up to the given record, NOT
including that record. Infimum and supremum records are not copied.
......@@ -767,7 +767,7 @@ page_copy_rec_list_start(
rec_t* rec, /* in: record on page */
dict_index_t* index, /* in: record descriptor */
mtr_t* mtr) /* in: mtr */
__attribute__((warn_unused_result, nonnull));
__attribute__((nonnull));
/*****************************************************************
Deletes records from a page from a given record onward, including that record.
The infimum and supremum records are not deleted. */
......
......@@ -93,7 +93,7 @@ page_zip_compress(
const page_t* page, /* in: uncompressed page */
dict_index_t* index, /* in: index of the B-tree node */
mtr_t* mtr) /* in: mini-transaction, or NULL */
__attribute__((warn_unused_result, nonnull(1,2,3)));
__attribute__((nonnull(1,2,3)));
/**************************************************************************
Decompress a page. This function should tolerate errors on the compressed
......@@ -107,7 +107,7 @@ page_zip_decompress(
page_zip_des_t* page_zip,/* in: data, size;
out: m_start, m_end, m_nonempty, n_blobs */
page_t* page) /* out: uncompressed page, may be trashed */
__attribute__((warn_unused_result, nonnull));
__attribute__((nonnull));
#ifdef UNIV_DEBUG
/**************************************************************************
......@@ -146,7 +146,7 @@ page_zip_max_ins_size(
zero or negative */
const page_zip_des_t* page_zip,/* in: compressed page */
ibool is_clust)/* in: TRUE if clustered index */
__attribute__((warn_unused_result, nonnull, pure));
__attribute__((nonnull, pure));
/**************************************************************************
Determine if enough space is available in the modification log. */
......@@ -161,7 +161,7 @@ page_zip_available(
ulint length, /* in: combined size of the record */
ulint create) /* in: nonzero=add the record to
the heap */
__attribute__((warn_unused_result, nonnull, pure));
__attribute__((nonnull, pure));
/**************************************************************************
Write data to the uncompressed header portion of a page. The data must
......@@ -369,7 +369,7 @@ page_zip_reorganize(
m_start, m_end, m_nonempty */
dict_index_t* index, /* in: index of the B-tree node */
mtr_t* mtr) /* in: mini-transaction */
__attribute__((warn_unused_result, nonnull));
__attribute__((nonnull));
/**************************************************************************
Copy a page byte for byte, except for the file page header and trailer. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment