to give a heads up
Surely this began as an expression to make people look upward. Currently it is used to warn people to be careful, pay attention, etc.
Heads up! That rock is going to fall on you!
He gave me heads up about the unexpected visit by the boss.