Fix -Werror=declaration-after-statement problem