From a1436544ff826b8c51242f4afb7c5d485c8e2e32 Mon Sep 17 00:00:00 2001
From: Paul Eggert
Date: Mon, 3 Aug 2020 15:21:59 -0700
Subject: Simplify use of __lsan_ignore_object
* configure.ac: Use AC_CHECK_FUNCS_ONCE for __lsan_ignore_object.
* src/buffer.c, src/data.c, src/emacs-module.c, src/regex-emacs.c:
* src/search.c: Use __lsan_ignore_object unconditionally, and don’t
include sanitizer/lsan_interface.h.
* src/lisp.h (__lsan_ignore_object): Provide a dummy in the
typical case where leak sanitization is not available.
---
src/data.c | 6 ------
1 file changed, 6 deletions(-)
(limited to 'src/data.c')
diff --git a/src/data.c b/src/data.c
index 5fff52d24c2..59d148166fe 100644
--- a/src/data.c
+++ b/src/data.c
@@ -23,10 +23,6 @@ along with GNU Emacs. If not, see . */
#include
#include
-#ifdef HAVE_SANITIZER_LSAN_INTERFACE_H
-#include
-#endif
-
#include
#include
#include
@@ -1788,9 +1784,7 @@ make_blv (struct Lisp_Symbol *sym, bool forwarded,
set_blv_defcell (blv, tem);
set_blv_valcell (blv, tem);
set_blv_found (blv, false);
-#ifdef HAVE___LSAN_IGNORE_OBJECT
__lsan_ignore_object (blv);
-#endif
return blv;
}
--
cgit v1.2.1