From 44df3717b8345e3499c4721ce6dc715dccc51b26 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Mon, 10 Jun 2024 19:08:11 +0200 Subject: [PATCH] Sync IR_DEBUG condition - #if/ifdef/defined (-Wundef) (#89) Follow-up of 5be6dd81f19f85bc06085617e7231f8699d7f9b0 --- ir_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ir_private.h b/ir_private.h index 8f8db7b4..064d713b 100644 --- a/ir_private.h +++ b/ir_private.h @@ -494,7 +494,7 @@ IR_ALWAYS_INLINE void ir_sparse_set_init(ir_sparse_set *set, uint32_t size) set->size = size; set->len = 0; set->data = (uint32_t*)ir_mem_malloc(sizeof(uint32_t) * 2 * size) + size; -#if IR_DEBUG +#ifdef IR_DEBUG /* initialize sparse part to avoid valgrind warnings */ memset(&IR_SPARSE_SET_SPARSE(set, size - 1), 0, size * sizeof(uint32_t)); #endif