warn at location of assignment instead of variable declaration