aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorPaul Eggert2014-01-20 08:55:28 -0800
committerPaul Eggert2014-01-20 08:55:28 -0800
commit009581fa6558c0ed4f804e7fecdc652ec3532810 (patch)
tree72ee808fb816066bdb59b9de553be74f5dec0da1 /src/alloc.c
parent3c35702fe921254340ad949ce3cab0b668788c90 (diff)
downloademacs-009581fa6558c0ed4f804e7fecdc652ec3532810.tar.gz
emacs-009581fa6558c0ed4f804e7fecdc652ec3532810.zip
Apply previous change even if valgrind is not in use, since it avoids undefined behavior. This is simpler.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/alloc.c b/src/alloc.c
index d31cf3b7193..7f0a74ca834 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -48,6 +48,12 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
48 48
49#include <verify.h> 49#include <verify.h>
50 50
51#if (defined ENABLE_CHECKING \
52 && defined HAVE_VALGRIND_VALGRIND_H \
53 && !defined USE_VALGRIND)
54# define USE_VALGRIND 1
55#endif
56
51#if USE_VALGRIND 57#if USE_VALGRIND
52#include <valgrind/valgrind.h> 58#include <valgrind/valgrind.h>
53#include <valgrind/memcheck.h> 59#include <valgrind/memcheck.h>