Definition of warning:
(n) :
the action of the verb to warn; an instance of warning someone; something spoken or written that is intended to warn
"the boss gave him a warning that he would be fired if he did not desist from his behaviour."
(interjection) :
used to warn of danger in signs and notices