From c1125c32183042a2f7be433d2c10e499f843d82c Mon Sep 17 00:00:00 2001 From: Monty Date: Sun, 2 Oct 2016 18:42:39 +0300 Subject: Fixed compiler warnings and failing tests --- extra/innochecksum.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'extra') diff --git a/extra/innochecksum.cc b/extra/innochecksum.cc index cda48309e78..ce631c13952 100644 --- a/extra/innochecksum.cc +++ b/extra/innochecksum.cc @@ -1500,7 +1500,9 @@ int main( /* bytes read count */ ulong bytes; /* Buffer to decompress page.*/ +#ifdef MYSQL_COMPRESSION byte* tbuf = NULL; +#endif /* current time */ time_t now; /* last time */ @@ -1578,8 +1580,9 @@ int main( buf = (byte*) malloc(UNIV_PAGE_SIZE_MAX * 2); xdes = (byte *) malloc(UNIV_PAGE_SIZE_MAX *2); +#ifdef MYSQL_COMPRESSION tbuf = buf + UNIV_PAGE_SIZE_MAX; - +#endif /* The file name is not optional. */ for (int i = 0; i < argc; ++i) { /* Reset parameters for each file. */ -- cgit v1.2.1