mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 03:17:20 +02:00
Remove compiler warnings
- Remove unused variables - Mark variables unused - Fix wrong types - Add no-strict-aliasing to BUILD scripts
This commit is contained in:
parent
dbbe70e1cf
commit
ddc5764303
15 changed files with 25 additions and 24 deletions
|
|
@ -1188,7 +1188,6 @@ buf_madvise_do_dump()
|
|||
{
|
||||
int ret= 0;
|
||||
buf_pool_t* buf_pool;
|
||||
ulint n;
|
||||
buf_chunk_t* chunk;
|
||||
|
||||
/* mirrors allocation in log_sys_init() */
|
||||
|
|
@ -1207,7 +1206,7 @@ buf_madvise_do_dump()
|
|||
|
||||
buf_pool_mutex_enter_all();
|
||||
|
||||
for (int i= 0; i < srv_buf_pool_instances; i++)
|
||||
for (ulong i= 0; i < srv_buf_pool_instances; i++)
|
||||
{
|
||||
buf_pool = buf_pool_from_array(i);
|
||||
chunk = buf_pool->chunks;
|
||||
|
|
|
|||
|
|
@ -967,7 +967,7 @@ buf_flush_init_for_writing(
|
|||
}
|
||||
}
|
||||
|
||||
uint32_t checksum;
|
||||
uint32_t checksum= 0;
|
||||
|
||||
switch (srv_checksum_algorithm_t(srv_checksum_algorithm)) {
|
||||
case SRV_CHECKSUM_ALGORITHM_INNODB:
|
||||
|
|
|
|||
|
|
@ -322,7 +322,7 @@ rec_init_offsets_comp_ordinary(
|
|||
|| dict_table_is_comp(index->table));
|
||||
ut_ad(format != REC_LEAF_TEMP_COLUMNS_ADDED
|
||||
|| index->n_fields == rec_offs_n_fields(offsets));
|
||||
ut_d(ulint n_null);
|
||||
ut_d(ulint n_null= 0);
|
||||
|
||||
switch (format) {
|
||||
case REC_LEAF_TEMP:
|
||||
|
|
@ -1447,10 +1447,10 @@ rec_convert_dtuple_to_rec_comp(
|
|||
byte* end;
|
||||
byte* nulls = temp
|
||||
? rec - 1 : rec - (REC_N_NEW_EXTRA_BYTES + 1);
|
||||
byte* lens;
|
||||
byte* UNINIT_VAR(lens);
|
||||
ulint len;
|
||||
ulint i;
|
||||
ulint n_node_ptr_field;
|
||||
ulint UNINIT_VAR(n_node_ptr_field);
|
||||
ulint fixed_len;
|
||||
ulint null_mask = 1;
|
||||
|
||||
|
|
@ -1835,7 +1835,7 @@ rec_copy_prefix_to_buf(
|
|||
ulint* buf_size) /*!< in/out: buffer size */
|
||||
{
|
||||
const byte* nulls;
|
||||
const byte* lens;
|
||||
const byte* UNINIT_VAR(lens);
|
||||
ulint i;
|
||||
ulint prefix_len;
|
||||
ulint null_mask;
|
||||
|
|
@ -2129,7 +2129,7 @@ rec_print_comp(
|
|||
ulint i;
|
||||
|
||||
for (i = 0; i < rec_offs_n_fields(offsets); i++) {
|
||||
const byte* data;
|
||||
const byte* UNINIT_VAR(data);
|
||||
ulint len;
|
||||
|
||||
if (rec_offs_nth_default(offsets, i)) {
|
||||
|
|
|
|||
|
|
@ -4177,7 +4177,7 @@ row_search_mvcc(
|
|||
trx_t* trx = prebuilt->trx;
|
||||
dict_index_t* clust_index;
|
||||
que_thr_t* thr;
|
||||
const rec_t* rec;
|
||||
const rec_t* UNINIT_VAR(rec);
|
||||
const dtuple_t* vrow = NULL;
|
||||
const rec_t* result_rec = NULL;
|
||||
const rec_t* clust_rec;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue