diff options
author | monty@mysql.com <> | 2004-11-09 14:46:26 +0200 |
---|---|---|
committer | monty@mysql.com <> | 2004-11-09 14:46:26 +0200 |
commit | d45bbae2de60d92a98e1696f8dc54b5c74915e3b (patch) | |
tree | 7353b3578d106709f49384760c799c976a03a1c6 /include | |
parent | 6c44563fc5c248fdab9d5818fd19138bb104fcb4 (diff) | |
download | mariadb-git-d45bbae2de60d92a98e1696f8dc54b5c74915e3b.tar.gz |
Fix for valgrind/purify for variables that the compiler touches but that doesn't affect the outcome of the tests
Diffstat (limited to 'include')
-rw-r--r-- | include/my_global.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/my_global.h b/include/my_global.h index f6200830ee3..07d4d8dc1cc 100644 --- a/include/my_global.h +++ b/include/my_global.h @@ -370,6 +370,12 @@ int __void__; #define LINT_INIT(var) #endif +#if defined(_lint) || defined(FORCE_INIT_OF_VARS) || defined(HAVE_purify) +#define PURIFY_OR_LINT_INIT(var) var=0 +#else +#define PURIFY_OR_LINT_INIT(var) +#endif + /* Define some useful general macros */ #if defined(__cplusplus) && defined(__GNUC__) #define max(a, b) ((a) >? (b)) |