Fix compiler warning by not mixing code and declarations