[ccan] [PATCH] list: suppress unused argument warnings

Cody P Schafer dev at codyps.com
Mon Aug 17 14:27:18 AEST 2015


On Sun, Aug 16, 2015 at 9:48 PM, Rusty Russell <rusty at rustcorp.com.au> wrote:
> Hi Cody,
>
>         Is this with -Wunused?  I'm tempted to add that to the
> default flags, since it seems a common option, and will make sure
> I'm on top of these in future...

gcc-5.2 claims it is -Wunused-parameter, which is enabled by -Wunused.

In file included from pp-tokenize.c:4:0:
ccan/ccan/list/list.h: In function ‘list_prepend_list_’:
ccan/ccan/list/list.h:659:23: warning: unused parameter ‘abortstr’
[-Wunused-parameter]
           const char *abortstr)
                       ^


More information about the ccan mailing list