summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2019-03-15 15:03:26 +0100
committerSergei Golubchik <serg@mariadb.org>2019-03-15 21:00:50 +0100
commitf1134d567695990dc7d62b6c25e4b9aa8de439e0 (patch)
tree10b60521eb410aeb5139b89248d76acf4dff86cc /extra
parent0508d327aef520d3131ff8a85ed610337149fffc (diff)
downloadmariadb-git-f1134d567695990dc7d62b6c25e4b9aa8de439e0.tar.gz
post-merge: gcc 8 warnings
note: Inherit String from Sql_alloc, to get operators new and new[] in sync in rocksdb gcc was complaining that non-lvalue was cast to const.
Diffstat (limited to 'extra')
-rw-r--r--extra/mariabackup/backup_mysql.cc1
-rw-r--r--extra/mariabackup/xtrabackup.cc22
2 files changed, 0 insertions, 23 deletions
diff --git a/extra/mariabackup/backup_mysql.cc b/extra/mariabackup/backup_mysql.cc
index bedb8ffb2ec..fee3b141206 100644
--- a/extra/mariabackup/backup_mysql.cc
+++ b/extra/mariabackup/backup_mysql.cc
@@ -334,7 +334,6 @@ get_mysql_vars(MYSQL *connection)
char *version_comment_var = NULL;
char *innodb_version_var = NULL;
char *have_backup_locks_var = NULL;
- char *have_backup_safe_binlog_info_var = NULL;
char *log_bin_var = NULL;
char *lock_wait_timeout_var= NULL;
char *wsrep_on_var = NULL;
diff --git a/extra/mariabackup/xtrabackup.cc b/extra/mariabackup/xtrabackup.cc
index 7f3a04ff7ea..2af8c22533f 100644
--- a/extra/mariabackup/xtrabackup.cc
+++ b/extra/mariabackup/xtrabackup.cc
@@ -2014,7 +2014,6 @@ xtrabackup_read_metadata(char *filename)
{
FILE *fp;
my_bool r = TRUE;
- int t;
fp = fopen(filename,"r");
if(!fp) {
@@ -5319,27 +5318,6 @@ innodb_free_param()
}
-/** Store the current binary log coordinates in a specified file.
-@param[in] filename file name
-@param[in] name binary log file name
-@param[in] pos binary log file position
-@return whether the operation succeeded */
-static bool
-store_binlog_info(const char* filename, const char* name, ulonglong pos)
-{
- FILE *fp = fopen(filename, "w");
-
- if (!fp) {
- msg("mariabackup: failed to open '%s'", filename);
- return(false);
- }
-
- fprintf(fp, "%s\t%llu\n", name, pos);
- fclose(fp);
-
- return(true);
-}
-
/** Check if file exists*/
static bool file_exists(std::string name)
{