Fix broken build with “declaration is not a statement” error message.
Followup to !256 (merged).
Hopefully fixes the broken build with @olh’s compiler and options, and error mesage “error: a label can only be part of a statement and a declaration is not a statement”
Move the incorrectly placed declaration to the start of the function.