diff options
| author | Paul Eggert | 2014-01-20 08:55:28 -0800 |
|---|---|---|
| committer | Paul Eggert | 2014-01-20 08:55:28 -0800 |
| commit | 009581fa6558c0ed4f804e7fecdc652ec3532810 (patch) | |
| tree | 72ee808fb816066bdb59b9de553be74f5dec0da1 /src/alloc.c | |
| parent | 3c35702fe921254340ad949ce3cab0b668788c90 (diff) | |
| download | emacs-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.c | 6 |
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> |