Skip to content

Commit e63e2fe

Browse files
committed
Fix warnings in innochecksum compilation
1 parent 8e1056b commit e63e2fe

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

storage/innobase/page/page0zip.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
33
Copyright (c) 2005, 2016, Oracle and/or its affiliates. All Rights Reserved.
44
Copyright (c) 2012, Facebook Inc.
5+
Copyright (c) 2017, MariaDB Corporation.
56
67
This program is free software; you can redistribute it and/or modify it under
78
the terms of the GNU General Public License as published by the Free Software
@@ -68,8 +69,8 @@ using namespace std;
6869
# define buf_LRU_stat_inc_unzip() ((void) 0)
6970
#endif /* !UNIV_HOTBACKUP */
7071

71-
#ifndef UNIV_HOTBACKUP
7272
#ifndef UNIV_INNOCHECKSUM
73+
#ifndef UNIV_HOTBACKUP
7374
/** Statistics on compression, indexed by page_zip_des_t::ssize - 1 */
7475
UNIV_INTERN page_zip_stat_tpage_zip_stat[PAGE_ZIP_SSIZE_MAX];
7576
/** Statistics on compression, indexed by index->id */
@@ -79,7 +80,6 @@ UNIV_INTERN ib_mutex_t page_zip_stat_per_index_mutex;
7980
#ifdef HAVE_PSI_INTERFACE
8081
UNIV_INTERN mysql_pfs_key_tpage_zip_stat_per_index_mutex_key;
8182
#endif /* HAVE_PSI_INTERFACE */
82-
#endif /* !UNIV_INNOCHECKSUM */
8383
#endif /* !UNIV_HOTBACKUP */
8484

8585
/* Compression level to be used by zlib. Settable by user. */
@@ -128,7 +128,6 @@ Compare at most sizeof(field_ref_zero) bytes.
128128

129129
/* Enable some extra debugging output. This code can be enabled
130130
independently of any UNIV_ debugging conditions. */
131-
#ifndef UNIV_INNOCHECKSUM
132131
#if defined UNIV_DEBUG || defined UNIV_ZIP_DEBUG
133132
# include <stdarg.h>
134133
MY_ATTRIBUTE((format (printf, 1, 2)))

0 commit comments

Comments
 (0)