summaryrefslogtreecommitdiff
path: root/storage/connect/filamzip.cpp
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2021-01-31 19:42:14 +0100
committerSergei Golubchik <serg@mariadb.org>2021-02-01 13:50:16 +0100
commita7b6943ee4bd740bb42e7259abbe911273c752e3 (patch)
treed3e26237629730d9dce3ecd43d152e9651f0852f /storage/connect/filamzip.cpp
parentbbbe7e781f1309f1125569fb7eeb3727b0cc6505 (diff)
downloadmariadb-git-a7b6943ee4bd740bb42e7259abbe911273c752e3.tar.gz
CONNECT: compiler warnings
Diffstat (limited to 'storage/connect/filamzip.cpp')
-rw-r--r--storage/connect/filamzip.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/connect/filamzip.cpp b/storage/connect/filamzip.cpp
index 8968078e9b1..79599382693 100644
--- a/storage/connect/filamzip.cpp
+++ b/storage/connect/filamzip.cpp
@@ -147,7 +147,6 @@ static bool ZipFile(PGLOBAL g, ZIPUTIL *zutp, PCSZ fn, PCSZ entry, char *buf)
static bool ZipFiles(PGLOBAL g, ZIPUTIL *zutp, PCSZ pat, char *buf)
{
char filename[_MAX_PATH];
- int rc;
/*********************************************************************/
/* pat is a multiple file name with wildcard characters */
@@ -155,6 +154,7 @@ static bool ZipFiles(PGLOBAL g, ZIPUTIL *zutp, PCSZ pat, char *buf)
strcpy(filename, pat);
#if defined(__WIN__)
+ int rc;
char drive[_MAX_DRIVE], direc[_MAX_DIR];
WIN32_FIND_DATA FileData;
HANDLE hSearch;
@@ -1207,7 +1207,7 @@ int UZDFAM::Cardinality(PGLOBAL g)
return 1;
int card = -1;
- int len = GetFileLength(g);
+ GetFileLength(g);
card = Records;