Fixed error with ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]