Re: [PATCH v2] modpost: fix asprintf warnings

From: Rusty Russell
Date: Thu Dec 10 2009 - 06:08:11 EST


On Thu, 10 Dec 2009 11:46:19 am Mike Frysinger wrote:
> On compilers with security warnings enabled by default, we get:
>
> scripts/mod/modpost.c: In function 'get_markers':
> scripts/mod/modpost.c:1562: warning: ignoring return value of 'asprintf',
> declared with attribute warn_unused_result
> scripts/mod/modpost.c: In function 'add_marker':
> scripts/mod/modpost.c:1982: warning: ignoring return value of 'asprintf',
> declared with attribute warn_unused_result

Actually I think these warnings only occur with -DFORTIFY_SOURCE. This is
turned on by Ubuntu at least.

I think they're a bad idea (if you really don't care, suppressing them is
really painful), but that's a separate battle...

Applied,
Rusty.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/