Why did this compile without warnings?