From a1c1700b89ca22f8883d5ad0ee7d97eb0e1d60ff Mon Sep 17 00:00:00 2001 From: Michael Widenius Date: Wed, 30 Jul 2014 10:05:01 +0300 Subject: [PATCH] Fixed some compiler warnings --- storage/heap/hp_write.c | 2 +- storage/innobase/btr/btr0cur.c | 4 ++-- storage/xtradb/btr/btr0cur.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/storage/heap/hp_write.c b/storage/heap/hp_write.c index a7543ea5768..e45c78b75f1 100644 --- a/storage/heap/hp_write.c +++ b/storage/heap/hp_write.c @@ -153,7 +153,7 @@ static uchar *next_free_record_pos(HP_SHARE *info) (info->data_length + info->index_length >= info->max_table_size)) { DBUG_PRINT("error", - ("record file full. records: %u max_records: %lu " + ("record file full. records: %lu max_records: %lu " "data_length: %llu index_length: %llu " "max_table_size: %llu", info->records, info->max_records, diff --git a/storage/innobase/btr/btr0cur.c b/storage/innobase/btr/btr0cur.c index 19e67199214..a40f3396214 100644 --- a/storage/innobase/btr/btr0cur.c +++ b/storage/innobase/btr/btr0cur.c @@ -5489,12 +5489,12 @@ btr_pages_info( ulint space_id, /*!< in: space id */ ulint zip_size, /*!< in: zip size */ ulint page_no, /*!< in: Page id where travelsed */ - ulint latch_mode, /*!< in: Used latch mode */ + ulint latch_mode __attribute__((unused)), /*!< in: Used latch mode */ dict_index_t* index, /*!< in: Used index */ ulint old_next_page_no, /*!< in: Next page number from old page */ ulint old_prev_page_no, /*!< in: Prev page number from old page */ ulint new_space_id, /*!< in: Space id of new page */ - ulint new_zip_size, /*!< in: Zip size of new page */ + ulint new_zip_size __attribute__((unused)), /*!< in: Zip size of new page */ ulint new_next_page_no, /*!< in: Next page number from new page */ ulint new_prev_page_no, /*!< in: Prev page number from new page */ mtr_t* mtr, /*!< in: mini transaction */ diff --git a/storage/xtradb/btr/btr0cur.c b/storage/xtradb/btr/btr0cur.c index e4c774d8b07..73947fd8db8 100644 --- a/storage/xtradb/btr/btr0cur.c +++ b/storage/xtradb/btr/btr0cur.c @@ -5682,12 +5682,12 @@ btr_pages_info( ulint space_id, /*!< in: space id */ ulint zip_size, /*!< in: zip size */ ulint page_no, /*!< in: Page id where travelsed */ - ulint latch_mode, /*!< in: Used latch mode */ + ulint latch_mode __attribute__((unused)), /*!< in: Used latch mode */ dict_index_t* index, /*!< in: Used index */ ulint old_next_page_no, /*!< in: Next page number from old page */ ulint old_prev_page_no, /*!< in: Prev page number from old page */ ulint new_space_id, /*!< in: Space id of new page */ - ulint new_zip_size, /*!< in: Zip size of new page */ + ulint new_zip_size __attribute__((unused)), /*!< in: Zip size of new page */ ulint new_next_page_no, /*!< in: Next page number from new page */ ulint new_prev_page_no, /*!< in: Prev page number from new page */ mtr_t* mtr, /*!< in: mini transaction */