Fix compiler warning about mixing declarations and code