Re: [PATCH] Kbuild, lto: Avoid reported warning with strtoul
From: Andi Kleen
Date: Fri Apr 18 2014 - 09:38:22 EST
On Fri, Apr 18, 2014 at 05:49:04AM +0100, Al Viro wrote:
> On Fri, Apr 18, 2014 at 06:35:56AM +0200, Andi Kleen wrote:
> > From: Andi Kleen <ak@xxxxxxxxxxxxxxx>
> >
> > Apparently someone's C library declares strtoul with warn_unused_result.
> > Cast to void to avoid the warning. Error handling is not useful here.
>
> Umm... Since we don't give a fsck for the value, isn't that simply
Yes your code is equivalent to mine.
-Andi
--
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/