With the latest version of sparse, the ATOMIC_VAR_INIT macro generates the following warning. This patch suppresses it.
warning: Using plain integer as NULL pointer Signed-off-by: Ethan Jackson <et...@nicira.com> --- include/sparse/pthread.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/sparse/pthread.h b/include/sparse/pthread.h index 7ba6a05..ae72f62 100644 --- a/include/sparse/pthread.h +++ b/include/sparse/pthread.h @@ -33,6 +33,9 @@ int pthread_rwlock_unlock(pthread_rwlock_t *rwlock) OVS_RELEASES(rwlock); int pthread_cond_wait(pthread_cond_t *, pthread_mutex_t *mutex) OVS_MUST_HOLD(mutex); +#undef PTHREAD_MUTEX_INITIALIZER +#define PTHREAD_MUTEX_INITIALIZER {} + #define pthread_mutex_trylock(MUTEX) \ ({ \ int retval = pthread_mutex_trylock(mutex); \ -- 1.7.9.5 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev