I've added the following comment.

/* Sparse complains about the proper PTHREAD_MUTEX_INITIALIZER definition.
 * Luckily, it's not a real compiler so we can overwrite it with something
 * simple. */

Thanks for the review,
Ethan

On Tue, Jul 9, 2013 at 4:08 PM, Ben Pfaff <[email protected]> wrote:
> On Tue, Jul 09, 2013 at 03:29:20PM -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 <[email protected]>
>
> Acked-by: Ben Pfaff <[email protected]>
>
> Please do add a comment that explains why the #undef/#define is
> needed.
> _______________________________________________
> dev mailing list
> [email protected]
> http://openvswitch.org/mailman/listinfo/dev
X-CudaMail-Whitelist-To: [email protected]
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to