[ovs-dev] [PATCH 1/2] atomic: Suppress sparse warning.

Ben Pfaff blp at nicira.com
Tue Jul 9 19:29:58 UTC 2013


On Tue, Jul 09, 2013 at 10:16:35AM -0700, Ethan Jackson wrote:
> 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 <ethan at nicira.com>

Does this actually occur for any use of PTHREAD_MUTEX_INITIALIZER?  If
so then perhaps we should fix it there instead, e.g. in
include/sparse/pthread.h.



More information about the dev mailing list