Skip to contentSkip to conversation

compiler warning

mdadm Michael Shigorin 1 participant 1 message Mar 3, 2017 2 messages not in the archive MD RAID

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 3 lines · NeilBrown
Quoted 1 line

Thought I'd better write this. :)

Thanks for the report, though we prefer such things to be sent to
[email protected]

Ack!

Quoted 4 lines

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.

Signature · 2 lines
 ---- WBR, Michael Shigorin / http://altlinux.org
  ------ http://opennet.ru / http://anna-news.info