diff options
author | unknown <monty@mysql.com> | 2004-11-09 14:46:26 +0200 |
---|---|---|
committer | unknown <monty@mysql.com> | 2004-11-09 14:46:26 +0200 |
commit | a9c7e3179cb9b0861943f0b0c4c9d38614c44536 (patch) | |
tree | 7353b3578d106709f49384760c799c976a03a1c6 /include | |
parent | 8e8c1a4756f04b582893965af0b780c2d32536f9 (diff) | |
download | mariadb-git-a9c7e3179cb9b0861943f0b0c4c9d38614c44536.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)) |