[ovs-dev] [PATCH] compiler.h: disable BUILD_MESSAGE for sparse

Ben Pfaff blp at nicira.com
Tue Sep 16 23:08:02 UTC 2014


On Tue, Sep 16, 2014 at 03:54:31PM -0700, Daniele Di Proietto wrote:
> Since sparse doesn't support _Pragma(message()), but uses the same defines as
> GCC, the BUILD_MESSAGE macro will cause sparse errors.
> 
> This commit simply disables BUILD_MESSAGE if __CHECKER__ is defined
> 
> Reported-by: Ben Pfaff <blp at nicira.com>
> Signed-off-by: Daniele Di Proietto <ddiproietto at vmware.com>

Thanks!

Acked-by: Ben Pfaff <blp at nicira.com>



More information about the dev mailing list