give notice vs warn

give notice

verb
  • To announce one's intent to leave a job; to inform an employer that one is leaving. 

  • Used other than figuratively or idiomatically: see give, notice. 

warn

verb
  • To notify or inform (someone, about something). 

  • To caution or admonish (someone) against unwise or unacceptable behaviour. 

  • To give warning. 

  • To summon (someone) to or inform of a formal meeting or duty. 

  • To advise or order to go or stay away. 

  • To make (someone) aware of impending danger, evil, etc. 

How often have the words give notice and warn occurred in a corpus of books? (source: Google Ngram Viewer )