> Some versions of gcc mysteriously report:
quoted text > drivers/char/n_gsm.c:1580: warning: ignoring return value of '__kfifo_must_check_helper', declared with attribute warn_unused_result
>
> This warning can be eliminated by using a local variable for the
> returned result value, as suggested by Andrew Morton.
But that just hides the bug in the helper surely - the helper has type
errors so needs fixing - not this. If you apply this then the underlying
bug is just going to get forgotten
Alan
--
unsubscribe notice To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Messages in current thread:
Re: kfifo must_check warning (+ patch) , Alan Cox , (Wed Oct 20, 11:37 am)