summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2021-06-02 14:05:12 +0300
committerMonty <monty@mariadb.org>2021-06-02 18:54:49 +0300
commitfa0bbff032bc5717715fdf32ce4c8ebdfcf73944 (patch)
tree41ba37a1a76268f328c6e952a185aed33a3f1879 /storage
parentd3d2c9656777ac59ce60e4070c0659e50c8796e2 (diff)
downloadmariadb-git-fa0bbff032bc5717715fdf32ce4c8ebdfcf73944.tar.gz
Fixed that compile-pentium64-valgrind-max works
- Removed Tokudb (no need to test this anymore with valgrind) - Added __attribute__(unused)) to a few places to be able to compile even if valgrind/memcheck.h is not installed. Reviewer: Marko Mäkelä <marko.makela@mariadb.com>
Diffstat (limited to 'storage')
-rw-r--r--storage/innobase/include/srv0mon.h2
-rw-r--r--storage/innobase/page/page0cur.cc26
2 files changed, 14 insertions, 14 deletions
diff --git a/storage/innobase/include/srv0mon.h b/storage/innobase/include/srv0mon.h
index 58e36676398..934f88ac8ae 100644
--- a/storage/innobase/include/srv0mon.h
+++ b/storage/innobase/include/srv0mon.h
@@ -656,7 +656,7 @@ Use MONITOR_DEC if appropriate mutex protection exists.
#ifdef HAVE_valgrind
# define MONITOR_CHECK_DEFINED(value) do { \
- mon_type_t m = value; \
+ mon_type_t m __attribute__((unused))= value; \
MEM_CHECK_DEFINED(&m, sizeof m); \
} while (0)
#else /* HAVE_valgrind */
diff --git a/storage/innobase/page/page0cur.cc b/storage/innobase/page/page0cur.cc
index 9bf9fe66b33..14a0ab8aa8a 100644
--- a/storage/innobase/page/page0cur.cc
+++ b/storage/innobase/page/page0cur.cc
@@ -1299,12 +1299,12 @@ page_cur_insert_rec_low(
#ifdef HAVE_valgrind
{
- const void* rec_start
- = rec - rec_offs_extra_size(offsets);
- ulint extra_size
- = rec_offs_extra_size(offsets)
- - (rec_offs_comp(offsets)
- ? REC_N_NEW_EXTRA_BYTES
+ const void* rec_start __attribute__((unused))
+ = rec - rec_offs_extra_size(offsets);
+ ulint extra_size __attribute__((unused))
+ = rec_offs_extra_size(offsets)
+ - (rec_offs_comp(offsets)
+ ? REC_N_NEW_EXTRA_BYTES
: REC_N_OLD_EXTRA_BYTES);
/* All data bytes of the record must be valid. */
@@ -1530,13 +1530,13 @@ page_cur_insert_rec_zip(
#ifdef HAVE_valgrind
{
- const void* rec_start
- = rec - rec_offs_extra_size(offsets);
- ulint extra_size
- = rec_offs_extra_size(offsets)
- - (rec_offs_comp(offsets)
- ? REC_N_NEW_EXTRA_BYTES
- : REC_N_OLD_EXTRA_BYTES);
+ const void* rec_start __attribute__((unused))
+ = rec - rec_offs_extra_size(offsets);
+ ulint extra_size __attribute__((unused))
+ = rec_offs_extra_size(offsets)
+ - (rec_offs_comp(offsets)
+ ? REC_N_NEW_EXTRA_BYTES
+ : REC_N_OLD_EXTRA_BYTES);
/* All data bytes of the record must be valid. */
MEM_CHECK_DEFINED(rec, rec_offs_data_size(offsets));