From 3a8fbde28d50e097a4e1b1a61fc7e548e5ff4841 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 19 Mar 2005 18:39:26 +0300 Subject: Clean up the warning inside sanity():decimal.c in valgrind-max builds. sql/my_decimal.h: HAVE_purify is defined in valgrind-max build as well: one possible solution is to disable the sanity check in decimal.c in the valgrind-max build, but it's better to have more checks than less, for valgrind-max builds are not always used in conjunction with valgrind. --- sql/my_decimal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/my_decimal.h') diff --git a/sql/my_decimal.h b/sql/my_decimal.h index c02b0cb4c8b..a2cc61cf8d4 100644 --- a/sql/my_decimal.h +++ b/sql/my_decimal.h @@ -85,7 +85,7 @@ public: { len= DECIMAL_BUFF_LENGTH; buf= buffer; -#if !defined(HAVE_purify) && !defined(DBUG_OFF) +#if !defined(DBUG_OFF) /* Set buffer to 'random' value to find wrong buffer usage */ for (uint i= 0; i < DECIMAL_BUFF_LENGTH; i++) buffer[i]= i; -- cgit v1.2.1