Skip to content

Commit

Permalink
Remove compound literal from constant expression
Browse files Browse the repository at this point in the history
  • Loading branch information
mahkoh committed Oct 25, 2016
1 parent 0e29d7b commit 37d2e24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions locking.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ extern pthread_t main_thread;
#define CMUS_COND_INITIALIZER PTHREAD_COND_INITIALIZER
#define CMUS_RWLOCK_INITIALIZER PTHREAD_RWLOCK_INITIALIZER

#define FIFO_MUTEX_INITIALIZER ((struct fifo_mutex) { \
#define FIFO_MUTEX_INITIALIZER { \
.mutex = PTHREAD_MUTEX_INITIALIZER, \
.tail = ATOMIC_VAR_INIT(NULL), \
})
}

void cmus_mutex_lock(pthread_mutex_t *mutex);
void cmus_mutex_unlock(pthread_mutex_t *mutex);
Expand Down

0 comments on commit 37d2e24

Please sign in to comment.