Skip to content

Commit

Permalink
Fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
MeirShpilraien committed Jul 23, 2024
1 parent a189258 commit 997804b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zmalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ static __attribute__((aligned(CACHE_LINE_SIZE))) used_memory_entry used_memory[M
static redisAtomic size_t num_active_threads = 0;
static __thread long my_thread_index = -1;

static void init_my_thread_index() {
static void init_my_thread_index(void) {
if (my_thread_index == -1) {
atomicGetIncr(num_active_threads, my_thread_index, 1);
my_thread_index &= THREAD_MASK;
Expand Down

0 comments on commit 997804b

Please sign in to comment.