Variable suggestion used before definition

From 433253

Revision as of 11:12, 23 August 2006 by Brianna Laugher (Talk | contribs)
(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)
game.c:93:32: Variable suggestion used before definition
  An rvalue is used that may not be initialized to a value on some execution
  path. (Use -usedef to inhibit warning)

Splint complains if a series of if/elseifs don't end in a plain else, presumably because it thinks you might not catch all cases (even if you've already checked the value elsewhere). To remove the error, change the final 'else if 'to a plain 'else'.

Personal tools