summaryrefslogtreecommitdiff
path: root/storage/xtradb/page
diff options
context:
space:
mode:
authorJan Lindström <jan.lindstrom@mariadb.com>2017-02-16 12:02:31 +0200
committerJan Lindström <jan.lindstrom@mariadb.com>2017-02-16 12:02:31 +0200
commit108b211ee2aa3944f060850a2522fb28c75f6158 (patch)
tree53acf1a2a56892f9bf44fb9bf5cc496120c38aec /storage/xtradb/page
parent2e8fa1c2b2867b99b5cc7f987ad64b666e0af2c4 (diff)
downloadmariadb-git-108b211ee2aa3944f060850a2522fb28c75f6158.tar.gz
Fix gcc 6.3.x compiler warnings.
These are caused by fact that functions are declared with __attribute__((nonnull)) or left shit like ~0 << macro when ~0U << macro should be used.
Diffstat (limited to 'storage/xtradb/page')
-rw-r--r--storage/xtradb/page/page0page.c2
-rw-r--r--storage/xtradb/page/page0zip.c1
2 files changed, 0 insertions, 3 deletions
diff --git a/storage/xtradb/page/page0page.c b/storage/xtradb/page/page0page.c
index f2ce6c9fe16..2dd5a4ba472 100644
--- a/storage/xtradb/page/page0page.c
+++ b/storage/xtradb/page/page0page.c
@@ -1345,7 +1345,6 @@ page_dir_split_slot(
ulint i;
ulint n_owned;
- ut_ad(page);
ut_ad(!page_zip || page_is_comp(page));
ut_ad(slot_no > 0);
@@ -1407,7 +1406,6 @@ page_dir_balance_slot(
rec_t* old_rec;
rec_t* new_rec;
- ut_ad(page);
ut_ad(!page_zip || page_is_comp(page));
ut_ad(slot_no > 0);
diff --git a/storage/xtradb/page/page0zip.c b/storage/xtradb/page/page0zip.c
index 3d3605d6362..7482323c9b5 100644
--- a/storage/xtradb/page/page0zip.c
+++ b/storage/xtradb/page/page0zip.c
@@ -4743,7 +4743,6 @@ page_zip_parse_compress(
ulint size;
ulint trailer_size;
- ut_ad(ptr && end_ptr);
ut_ad(!page == !page_zip);
if (UNIV_UNLIKELY(ptr + (2 + 2) > end_ptr)) {