diff options
author | Sergei Golubchik <serg@mariadb.org> | 2017-03-10 16:25:01 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2017-03-10 18:21:22 +0100 |
commit | b6a1d6538b4d2001be20fe0d8f470874c744f0a2 (patch) | |
tree | ab30243474522bc64cbdb8c19dd10ab10e21c782 | |
parent | 0094b6581df1530821608327df50b8479e1dc0f8 (diff) | |
download | mariadb-git-b6a1d6538b4d2001be20fe0d8f470874c744f0a2.tar.gz |
compiler warnings
-rw-r--r-- | storage/connect/ha_connect.cc | 6 | ||||
-rw-r--r-- | storage/innobase/log/log0crypt.cc | 4 | ||||
-rw-r--r-- | storage/innobase/os/os0file.cc | 2 | ||||
-rw-r--r-- | storage/xtradb/log/log0crypt.cc | 4 | ||||
-rw-r--r-- | storage/xtradb/os/os0file.cc | 2 |
5 files changed, 9 insertions, 9 deletions
diff --git a/storage/connect/ha_connect.cc b/storage/connect/ha_connect.cc index d1ab18f52d5..e34ea620a96 100644 --- a/storage/connect/ha_connect.cc +++ b/storage/connect/ha_connect.cc @@ -1034,15 +1034,15 @@ char *GetListOption(PGLOBAL g, const char *opname, pv= strchr(pk, '='); if (pv && (!pn || pv < pn)) { - n= MY_MIN(pv - pk, sizeof(key) - 1); + n= MY_MIN(static_cast<size_t>(pv - pk), sizeof(key) - 1); memcpy(key, pk, n); key[n]= 0; pv++; - n= MY_MIN((pn ? pn - pv : strlen(pv)), sizeof(val) - 1); + n= MY_MIN((pn ? pn - pv : strlen(pv)), sizeof(val) - 1); memcpy(val, pv, n); val[n]= 0; } else { - n= MY_MIN((pn ? pn - pk : strlen(pk)), sizeof(key) - 1); + n= MY_MIN((pn ? pn - pk : strlen(pk)), sizeof(key) - 1); memcpy(key, pk, n); key[n]= 0; val[0]= 0; diff --git a/storage/innobase/log/log0crypt.cc b/storage/innobase/log/log0crypt.cc index dc9f3d577e6..e6b5c845757 100644 --- a/storage/innobase/log/log0crypt.cc +++ b/storage/innobase/log/log0crypt.cc @@ -145,11 +145,11 @@ log_crypt_print_checkpoint_keys( if (crypt_info.size()) { fprintf(stderr, - "InnoDB: redo log checkpoint: %llu [ chk key ]: ", + "InnoDB: redo log checkpoint: " UINT64PF " [ chk key ]: ", checkpoint_no); for (size_t i = 0; i < crypt_info.size(); i++) { struct crypt_info_t* it = &crypt_info[i]; - fprintf(stderr, "[ %llu %u ] ", + fprintf(stderr, "[ " UINT64PF " %u ] ", it->checkpoint_no, it->key_version); } diff --git a/storage/innobase/os/os0file.cc b/storage/innobase/os/os0file.cc index e92526ceab0..efbaee92a78 100644 --- a/storage/innobase/os/os0file.cc +++ b/storage/innobase/os/os0file.cc @@ -6280,7 +6280,7 @@ os_file_trim( srv_use_trim = FALSE; ib_logf(IB_LOG_LEVEL_WARN, "fallocate() failed with error %d." - " start: %llu len: " ULINTPF " payload: " ULINTPF "." + " start: " UINT64PF " len: " ULINTPF " payload: " ULINTPF "." " Disabling fallocate for now.", errno, off, ulint(trim_len), ulint(len)); diff --git a/storage/xtradb/log/log0crypt.cc b/storage/xtradb/log/log0crypt.cc index dc9f3d577e6..e6b5c845757 100644 --- a/storage/xtradb/log/log0crypt.cc +++ b/storage/xtradb/log/log0crypt.cc @@ -145,11 +145,11 @@ log_crypt_print_checkpoint_keys( if (crypt_info.size()) { fprintf(stderr, - "InnoDB: redo log checkpoint: %llu [ chk key ]: ", + "InnoDB: redo log checkpoint: " UINT64PF " [ chk key ]: ", checkpoint_no); for (size_t i = 0; i < crypt_info.size(); i++) { struct crypt_info_t* it = &crypt_info[i]; - fprintf(stderr, "[ %llu %u ] ", + fprintf(stderr, "[ " UINT64PF " %u ] ", it->checkpoint_no, it->key_version); } diff --git a/storage/xtradb/os/os0file.cc b/storage/xtradb/os/os0file.cc index 7b3b8800407..ed84834e6ea 100644 --- a/storage/xtradb/os/os0file.cc +++ b/storage/xtradb/os/os0file.cc @@ -6394,7 +6394,7 @@ os_file_trim( srv_use_trim = FALSE; ib_logf(IB_LOG_LEVEL_WARN, "fallocate() failed with error %d." - " start: %llu len: " ULINTPF " payload: " ULINTPF "." + " start: " UINT64PF " len: " ULINTPF " payload: " ULINTPF "." " Disabling fallocate for now.", errno, off, ulint(trim_len), ulint(len)); |