[ccan] Using opt with -Wextra and -Werror

Rusty Russell rusty at rustcorp.com.au
Mon Feb 7 15:39:36 EST 2011


On Mon, 7 Feb 2011 02:36:14 pm Joel Stanley wrote:
> Hello Rusty,
> 
> I wrote the two following patches so that we could use opt in our project that
> has -Wextra and -Werror enabled.

Cool, applied!

> No worries if they're not suitable for the main tree, but I thought I'd put
> them out there incase others come across similiar issues.  It wasn't obvious
> what was going wrong at some points, due to the crazy amount of macro
> expansions when looking at the preproceed source.  Using clang instead of gcc
> helped alot there.

One of my TODO projects is to have an automated way of uploading the results
of "make scores" or equiv, so we can start automating feedback on modules.
If someone wants to hack on this, it'd be great!

It would catch stuff like this: you could build with -Wextra and send those
scores through, for example.

Thanks,
Rusty.


More information about the ccan mailing list