aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 573bac00c84..f44f22be1a7 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -67,7 +67,8 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
67# include <malloc.h> 67# include <malloc.h>
68#endif 68#endif
69 69
70#if defined HAVE_VALGRIND_VALGRIND_H && !defined USE_VALGRIND 70#if (defined ENABLE_CHECKING \
71 && defined HAVE_VALGRIND_VALGRIND_H && !defined USE_VALGRIND)
71# define USE_VALGRIND 1 72# define USE_VALGRIND 1
72#endif 73#endif
73 74
@@ -4694,7 +4695,7 @@ mark_maybe_pointer (void *p)
4694{ 4695{
4695 struct mem_node *m; 4696 struct mem_node *m;
4696 4697
4697#ifdef USE_VALGRIND 4698#if USE_VALGRIND
4698 VALGRIND_MAKE_MEM_DEFINED (&p, sizeof (p)); 4699 VALGRIND_MAKE_MEM_DEFINED (&p, sizeof (p));
4699#endif 4700#endif
4700 4701