aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorPaul Eggert2014-01-20 08:47:41 -0800
committerPaul Eggert2014-01-20 08:47:41 -0800
commit3c35702fe921254340ad949ce3cab0b668788c90 (patch)
tree9de0bfd95d2dda97dd29d96faf9dfc7bdeb9a4cd /src/alloc.c
parent71f16bdad487018608007b53d26eb65b4cbe6b55 (diff)
downloademacs-3c35702fe921254340ad949ce3cab0b668788c90.tar.gz
emacs-3c35702fe921254340ad949ce3cab0b668788c90.zip
Pacify valgrind by initializing buffer redisplay bit.
Problem reported by Dmitry Antipov in <http://lists.gnu.org/archive/html/emacs-devel/2014-01/msg01756.html>. * alloc.c (USE_VALGRIND): Move this to ... * conf_post.h (USE_VALGRIND): ... here. Use booleans. * buffer.c (Fget_buffer_create): Initialize redisplay bit to pacify valgrind.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 7f0a74ca834..d31cf3b7193 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -48,12 +48,6 @@ 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
57#if USE_VALGRIND 51#if USE_VALGRIND
58#include <valgrind/valgrind.h> 52#include <valgrind/valgrind.h>
59#include <valgrind/memcheck.h> 53#include <valgrind/memcheck.h>