summaryrefslogtreecommitdiff
path: root/sql/my_decimal.h
diff options
context:
space:
mode:
authorunknown <konstantin@mysql.com>2005-03-19 18:39:26 +0300
committerunknown <konstantin@mysql.com>2005-03-19 18:39:26 +0300
commit648d40ea663aecb584c832380a4309a127d7c2a5 (patch)
treeaa76bf125f71cd22bacd1e7c8836fa4c649fa212 /sql/my_decimal.h
parent88dcf66808857d7729f3d16cbaa9bb29383deb6b (diff)
downloadmariadb-git-648d40ea663aecb584c832380a4309a127d7c2a5.tar.gz
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.
Diffstat (limited to 'sql/my_decimal.h')
-rw-r--r--sql/my_decimal.h2
1 files changed, 1 insertions, 1 deletions
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;