Re: [PATCH] checkpatch: Add check for sscanf without return use

From: Andrew Morton
Date: Mon Oct 07 2013 - 19:56:34 EST


On Mon, 07 Oct 2013 16:45:23 -0700 Joe Perches <joe@xxxxxxxxxxx> wrote:

> Naked use sscanf can be troublesome.

It would be helpful to expand on "troublesome"?

> Add a warning when the sscanf return value is not used.

Maybe it should be __must_check?


--
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/