Skip to content

Commit

Permalink
Sync IR_DEBUG condition - #if/ifdef/defined (-Wundef) (#89)
Browse files Browse the repository at this point in the history
Follow-up of 5be6dd8
  • Loading branch information
petk committed Jun 10, 2024
1 parent 5be6dd8 commit 44df371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ir_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 44df371

Please sign in to comment.