[ccan] [PATCH] bitmap: add endianness casts

Emilio G. Cota cota at braap.org
Fri Dec 20 14:43:24 EST 2013


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:'

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.

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

Cheers,

		Emilio


More information about the ccan mailing list