summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormonty@mysql.com <>2004-11-09 14:46:26 +0200
committermonty@mysql.com <>2004-11-09 14:46:26 +0200
commitd45bbae2de60d92a98e1696f8dc54b5c74915e3b (patch)
tree7353b3578d106709f49384760c799c976a03a1c6 /include
parent6c44563fc5c248fdab9d5818fd19138bb104fcb4 (diff)
downloadmariadb-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.h6
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))