From ce378308af700657d9cba841939b2385b21accaa Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 16 Dec 2024 11:52:12 -0500 Subject: sanity: Get rid of sanitize_ignore() It's probably nicer to avoid evaluating expensive arguments when not sanitizing, rather than relying on the optimizer to clean them up. --- src/alloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/alloc.c') diff --git a/src/alloc.c b/src/alloc.c index ef9f6ab..9ab9983 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -317,8 +317,8 @@ void *varena_realloc(struct varena *varena, void *ptr, size_t old_count, size_t return NULL; } - size_t new_exact_size = varena_exact_size(varena, new_count); - size_t old_exact_size = varena_exact_size(varena, old_count); + _maybe_unused size_t new_exact_size = varena_exact_size(varena, new_count); + _maybe_unused size_t old_exact_size = varena_exact_size(varena, old_count); if (new_arena == old_arena) { if (new_count < old_count) { -- cgit v1.2.3