* Re: [mdadm] compiler warning
[not found] ` <87bmtjnt5v.fsf@notabene.neil.brown.name>
@ 2017-03-03 8:14 ` Michael Shigorin
0 siblings, 0 replies; only message in thread
From: Michael Shigorin @ 2017-03-03 8:14 UTC (permalink / raw)
To: NeilBrown; +Cc: linux-raid
On Fri, Mar 03, 2017 at 10:41:16AM +1100, NeilBrown wrote:
> > Thought I'd better write this. :)
> Thanks for the report, though we prefer such things to be sent to
> linux-raid@vger.kernel.org
Ack!
> The warning is just telling us that the compiler is smart
> enough to deduce that whenever st is uninitialised, err = 0.
> So the code is safe, but maybe more complex than needed.
> I'll submit a patch to improve it a little.
Thanks for explanation, I'll file a bug against the compiler then.
Your commit has cleared the warning in the mean time.
--
---- WBR, Michael Shigorin / http://altlinux.org
------ http://opennet.ru / http://anna-news.info
^ permalink raw reply [flat|nested] only message in thread