configurator: Fix warning in HAVE_FOR_LOOP_DECLARATION
authorKevin Locke <kevin@kevinlocke.name>
Fri, 23 Sep 2016 03:33:13 +0000 (21:33 -0600)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 27 Sep 2016 05:39:45 +0000 (15:39 +1000)
commitc455d55526c0f15a8b54ecc7bbaf282b01c48ad0
tree6ac1a89b07c2e4fcef3d3ee120a99c70da96d0f2
parent563ec0870cee828240b9f2112f5bd31284e31448
configurator: Fix warning in HAVE_FOR_LOOP_DECLARATION

Visual C++ prints "warning C4702: unreachable code" due to the return
statement after the for loop which is never reached.  Fix this by
setting a variable returned by a single return statement at the end.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
tools/configurator/configurator.c