This declaration is okay, though, since it occurs at the beginning of a block.  (So you don't have to declare everything at the top of the function; you just have to declare everything at the beginning of whichever block the declaration appears in.)