aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-12-13 11:41:17 +0100
committerJunio C Hamano <gitster@pobox.com>2024-12-13 06:48:45 -0800
commit23eeee08d6a22de197b17e791508ddcb3a953dc7 (patch)
tree5e8114b36c2b86b1f86e7d0d6f94ebf250d76e1e
parent714c134dd6f29d23b46cb85cd8bd82a2ce894c65 (diff)
downloadgit-23eeee08d6a22de197b17e791508ddcb3a953dc7.tar.gz
Makefile: drop -DSUPPRESS_ANNOTATED_LEAKS
The -DSUPPRESS_ANNOTATED_LEAKS preprocessor directive was used to enable our `UNLEAK()` macro in the past, which marks memory as still-reachable so that the leak sanitizer does not complain. Starting with 52c7dbd036 (git-compat-util: drop now-unused `UNLEAK()` macro, 2024-11-20) this macro has been removed, and thus the preprocessor directive is not required anymore, either. Drop it. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--Makefile1
-rw-r--r--meson.build1
2 files changed, 0 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 06f01149ec..2506f3b7e3 100644
--- a/Makefile
+++ b/Makefile
@@ -1490,7 +1490,6 @@ ifneq ($(filter undefined,$(SANITIZERS)),)
BASIC_CFLAGS += -DSHA1DC_FORCE_ALIGNED_ACCESS
endif
ifneq ($(filter leak,$(SANITIZERS)),)
-BASIC_CFLAGS += -DSUPPRESS_ANNOTATED_LEAKS
BASIC_CFLAGS += -O0
SANITIZE_LEAK = YesCompiledWithIt
endif
diff --git a/meson.build b/meson.build
index 0dccebcdf1..1af25af5cc 100644
--- a/meson.build
+++ b/meson.build
@@ -712,7 +712,6 @@ else
build_options_config.set('SANITIZE_ADDRESS', '')
endif
if get_option('b_sanitize').contains('leak')
- libgit_c_args += '-DSUPPRESS_ANNOTATED_LEAKS'
build_options_config.set('SANITIZE_LEAK', 'YesCompiledWithIt')
else
build_options_config.set('SANITIZE_LEAK', '')