[ccan] [PATCH] bitmap: add endianness casts

David Gibson david at gibson.dropbear.id.au
Wed Dec 25 18:08:16 EST 2013


On Thu, Dec 19, 2013 at 10:43:24PM -0500, Emilio G. Cota wrote:
> On Fri, Dec 20, 2013 at 12:49:35 +1100, David Gibson wrote:
> > Is there an easy way to run sparse over ccan modules?
> 
> The ones that end up in an object file are easy to check.
> Just `CC=cgcc make' from ccan's top directory.
> 
> A header-only module is a bit uglier to deal with. A quick
> way of running it through sparse is to run ccanlint from
> the module's directory, passing cgcc as the compiler to ccanlint:
> 
>   $ ../../tools/ccanlint/ccanlint --compiler=cgcc -v | grep -v '\.o:'

Ah, thanks.

> Removing warning messages for object files is useful; cgcc seems to
> try to feed sparse object files, which results in a lot of useless
> warnings.

Hrm.  That's probably cgcc misinterpreting what to do when it's
invoked as a linker only.

> Note that this procedure works as long as there is a test program.

Ok.


Hey, Rusty, any chance of integrating sparse support into ccanlint?

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/ccan/attachments/20131225/aca0e026/attachment.sig>


More information about the ccan mailing list