"notice beforehand of the consequences that will probably follow continuance in some particular course" [Century Dictionary], Old English warnung, verbal noun from warnian (see warn (v.)).
a warning that still more bombs could explode
the warning was to beware of surprises
they gave little warning of their arrival
she had only had four days' warning before leaving Berlin