diff options
author | unknown <heikki@hundin.mysql.fi> | 2003-04-20 19:36:09 +0300 |
---|---|---|
committer | unknown <heikki@hundin.mysql.fi> | 2003-04-20 19:36:09 +0300 |
commit | 61e368438ab5afe1d88ee718915437c038c5490e (patch) | |
tree | 93b3d01321afe0de8bf6493887a7d0e1a7f5bdec /innobase | |
parent | 480dbf0f30b9d6f8673902173f414b51eff99a61 (diff) | |
download | mariadb-git-61e368438ab5afe1d88ee718915437c038c5490e.tar.gz |
univ.i:
If HAVE_purify is defined, define UNIV_SET_MEM_TO_ZERO to eliminate Purify warnings
innobase/include/univ.i:
If HAVE_purify is defined, define UNIV_SET_MEM_TO_ZERO to eliminate Purify warnings
Diffstat (limited to 'innobase')
-rw-r--r-- | innobase/include/univ.i | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/innobase/include/univ.i b/innobase/include/univ.i index bf606efcf64..e29f3ec92e1 100644 --- a/innobase/include/univ.i +++ b/innobase/include/univ.i @@ -100,6 +100,15 @@ memory is read outside the allocated blocks. */ #define YYDEBUG 1 +#ifdef HAVE_purify +/* The following sets all new allocated memory to zero before use: +this can be used to eliminate unnecessary Purify warnings, but note that +it also masks many bugs Purify could detect. For detailed Purify analysis it +is best to remove the define below and look through the warnings one +by one. */ +#define UNIV_SET_MEM_TO_ZERO +#endif + /* #define UNIV_SQL_DEBUG #define UNIV_LOG_DEBUG |